Update Angular dependencies to latest versions (#1366)
This commit is contained in:
+2
-2
@@ -23,7 +23,7 @@ export class DuplicateFilesNotificationComponent implements OnDestroy {
|
||||
displayDialog = false;
|
||||
|
||||
private duplicateFileService = inject(DuplicateFileService);
|
||||
private ref: DynamicDialogRef | undefined;
|
||||
private ref: DynamicDialogRef | undefined | null;
|
||||
|
||||
duplicateFiles$ = this.duplicateFileService.duplicateFiles$;
|
||||
duplicateFilesCount$: Observable<number> = this.duplicateFiles$.pipe(
|
||||
@@ -48,7 +48,7 @@ export class DuplicateFilesNotificationComponent implements OnDestroy {
|
||||
}
|
||||
});
|
||||
|
||||
this.ref.onClose.subscribe((result: any) => {
|
||||
this.ref?.onClose.subscribe((result: any) => {
|
||||
if (result) {
|
||||
// Handle any result from dialog if needed
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export class AppMenuComponent implements OnInit {
|
||||
magicShelfMenu$: Observable<any> | undefined;
|
||||
|
||||
versionInfo: AppVersion | null = null;
|
||||
dynamicDialogRef: DynamicDialogRef | undefined;
|
||||
dynamicDialogRef: DynamicDialogRef | undefined | null;
|
||||
|
||||
private libraryService = inject(LibraryService);
|
||||
private shelfService = inject(ShelfService);
|
||||
|
||||
@@ -9,7 +9,7 @@ export class IconPickerService {
|
||||
|
||||
open(): Observable<string> {
|
||||
const isMobile = window.innerWidth <= 768;
|
||||
const ref: DynamicDialogRef = this.dialog.open(IconPickerComponent, {
|
||||
const ref: DynamicDialogRef | null = this.dialog.open(IconPickerComponent, {
|
||||
header: 'Choose an Icon',
|
||||
modal: true,
|
||||
closable: true,
|
||||
@@ -22,6 +22,6 @@ export class IconPickerService {
|
||||
minWidth: isMobile ? '90vw' : '800px',
|
||||
}
|
||||
});
|
||||
return ref.onClose as Observable<string>;
|
||||
return ref!.onClose as Observable<string>;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export class DialogLauncherService {
|
||||
|
||||
dialogService = inject(DialogService);
|
||||
|
||||
open(options: { component: any; header: string; top?: string; width?: string }): DynamicDialogRef {
|
||||
open(options: { component: any; header: string; top?: string; width?: string }): DynamicDialogRef | null {
|
||||
const isMobile = window.innerWidth <= 768;
|
||||
const {component, header, top, width} = options;
|
||||
return this.dialogService.open(component, {
|
||||
|
||||
Reference in New Issue
Block a user