refactor(frontend): resolve linting errors, and EPUB reader lifecycle errors (#2127)
* refactor(types): improve type safety by replacing 'any' with specific types in various components Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * fix(filters): handle undefined values in filter streams and update type for selected filters Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(epub-reader): improve rendition cleanup and enhance debug logging in helper functions Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * fix(epub-reader): handle errors during rendition and book destruction in ngOnDestroy Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> --------- Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ export class LibraryShelfMenuService {
|
||||
label: 'Edit Library',
|
||||
icon: 'pi pi-pen-to-square',
|
||||
command: () => {
|
||||
this.dialogLauncherService.openLibraryEditDialog(<number>entity?.id);
|
||||
this.dialogLauncherService.openLibraryEditDialog((entity?.id as number));
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -77,7 +77,7 @@ export class LibraryShelfMenuService {
|
||||
label: 'Custom Fetch Metadata',
|
||||
icon: 'pi pi-sync',
|
||||
command: () => {
|
||||
this.dialogLauncherService.openLibraryMetadataFetchDialog(<number>entity?.id);
|
||||
this.dialogLauncherService.openLibraryMetadataFetchDialog((entity?.id as number));
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -144,7 +144,7 @@ export class LibraryShelfMenuService {
|
||||
label: 'Edit Shelf',
|
||||
icon: 'pi pi-pen-to-square',
|
||||
command: () => {
|
||||
this.dialogLauncherService.openShelfEditDialog(<number>entity?.id);
|
||||
this.dialogLauncherService.openShelfEditDialog((entity?.id as number));
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -197,7 +197,7 @@ export class LibraryShelfMenuService {
|
||||
icon: 'pi pi-pen-to-square',
|
||||
disabled: disableOptions,
|
||||
command: () => {
|
||||
this.dialogLauncherService.openMagicShelfEditDialog(<number>entity?.id);
|
||||
this.dialogLauncherService.openMagicShelfEditDialog((entity?.id as number));
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user