perf(frontend): optimize initial bundle size with lazy-loaded dialogs and localized chart providers (#1110)
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ describe('MetadataProgressWidgetComponent', () => {
|
||||
cancelTask: vi.fn(() => of({cancelled: true})),
|
||||
};
|
||||
dialogLauncherService = {
|
||||
openMetadataReviewDialog: vi.fn(),
|
||||
openMetadataReviewDialog: vi.fn(() => Promise.resolve(null)),
|
||||
};
|
||||
messageService = {
|
||||
add: vi.fn(),
|
||||
|
||||
+1
-1
@@ -102,7 +102,7 @@ export class MetadataProgressWidgetComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
reviewTask(taskId: string): void {
|
||||
this.dialogLauncherService.openMetadataReviewDialog(taskId);
|
||||
void this.dialogLauncherService.openMetadataReviewDialog(taskId).catch(() => undefined);
|
||||
}
|
||||
|
||||
cancelTask(taskId: string): void {
|
||||
|
||||
Reference in New Issue
Block a user