cleanup & tidy up

This commit is contained in:
Ionuț Staicu
2025-08-12 17:56:17 +03:00
parent 9e1d437e74
commit 3ebc617196
@@ -47,18 +47,6 @@ export class BookUploaderComponent implements OnInit {
_selectedLibrary: Library | null = null;
selectedPath: LibraryPath | null = null;
get selectedLibrary(): Library | null {
return this._selectedLibrary;
}
set selectedLibrary(library: Library | null) {
this._selectedLibrary = library;
if(library?.paths?.length === 1) {
this.selectedPath = library.paths[0];
}
}
private readonly libraryService = inject(LibraryService);
private readonly messageService = inject(MessageService);
private readonly appSettingsService = inject(AppSettingsService);
@@ -90,7 +78,18 @@ export class BookUploaderComponent implements OnInit {
this.selectedLibrary = state.libraries[0];
});
}
get selectedLibrary(): Library | null {
return this._selectedLibrary;
}
set selectedLibrary(library: Library | null) {
this._selectedLibrary = library;
if(library?.paths?.length === 1) {
this.selectedPath = library.paths[0];
}
}
hasPendingFiles(): boolean {