|
|
@ -22,7 +22,7 @@ import { |
|
|
ChangeDetectorRef, |
|
|
ChangeDetectorRef, |
|
|
Component, |
|
|
Component, |
|
|
DestroyRef, |
|
|
DestroyRef, |
|
|
Inject |
|
|
inject |
|
|
} from '@angular/core'; |
|
|
} from '@angular/core'; |
|
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; |
|
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; |
|
|
import { |
|
|
import { |
|
|
@ -87,6 +87,8 @@ export class GfImportActivitiesDialogComponent { |
|
|
validators: [Validators.required] |
|
|
validators: [Validators.required] |
|
|
}) |
|
|
}) |
|
|
}); |
|
|
}); |
|
|
|
|
|
protected readonly data = |
|
|
|
|
|
inject<ImportActivitiesDialogParams>(MAT_DIALOG_DATA); |
|
|
protected dataSource: MatTableDataSource<Activity>; |
|
|
protected dataSource: MatTableDataSource<Activity>; |
|
|
protected details: any[] = []; |
|
|
protected details: any[] = []; |
|
|
protected dialogTitle = $localize`Import Activities`; |
|
|
protected dialogTitle = $localize`Import Activities`; |
|
|
@ -109,17 +111,16 @@ export class GfImportActivitiesDialogComponent { |
|
|
private deviceType: string; |
|
|
private deviceType: string; |
|
|
private tags: CreateTagDto[] = []; |
|
|
private tags: CreateTagDto[] = []; |
|
|
|
|
|
|
|
|
public constructor( |
|
|
private readonly changeDetectorRef = inject(ChangeDetectorRef); |
|
|
private readonly changeDetectorRef: ChangeDetectorRef, |
|
|
private readonly dataService = inject(DataService); |
|
|
@Inject(MAT_DIALOG_DATA) |
|
|
private readonly destroyRef = inject(DestroyRef); |
|
|
protected readonly data: ImportActivitiesDialogParams, |
|
|
private readonly deviceDetectorService = inject(DeviceDetectorService); |
|
|
private readonly dataService: DataService, |
|
|
private readonly dialogRef = |
|
|
private readonly destroyRef: DestroyRef, |
|
|
inject<MatDialogRef<GfImportActivitiesDialogComponent>>(MatDialogRef); |
|
|
private readonly deviceDetectorService: DeviceDetectorService, |
|
|
private readonly importActivitiesService = inject(ImportActivitiesService); |
|
|
private readonly dialogRef: MatDialogRef<GfImportActivitiesDialogComponent>, |
|
|
private readonly snackBar = inject(MatSnackBar); |
|
|
private readonly importActivitiesService: ImportActivitiesService, |
|
|
|
|
|
private readonly snackBar: MatSnackBar |
|
|
public constructor() { |
|
|
) { |
|
|
|
|
|
addIcons({ cloudUploadOutline, warningOutline }); |
|
|
addIcons({ cloudUploadOutline, warningOutline }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|