perf(frontend): optimize initial bundle size with lazy-loaded dialogs and localized chart providers (#1110)
This commit is contained in:
@@ -215,8 +215,8 @@ export class LibraryCreatorComponent {
|
||||
return this.allBookFormats.some(f => this.getFormatWarning(f.type) !== null);
|
||||
}
|
||||
|
||||
openDirectoryPicker(): void {
|
||||
const ref = this.dialogLauncherService.openDirectoryPickerDialog();
|
||||
async openDirectoryPicker(): Promise<void> {
|
||||
const ref = await this.dialogLauncherService.openDirectoryPickerDialog().catch(() => null);
|
||||
ref?.onClose.subscribe((selectedFolders: string[] | null) => {
|
||||
if (selectedFolders && selectedFolders.length > 0) {
|
||||
this.folders.update(current => {
|
||||
|
||||
Reference in New Issue
Block a user