perf(frontend): optimize initial bundle size with lazy-loaded dialogs and localized chart providers (#1110)

This commit is contained in:
brios
2026-05-18 23:05:10 +02:00
committed by GitHub
parent 4afc738dd4
commit c6cbdcfa11
32 changed files with 532 additions and 405 deletions
@@ -153,8 +153,8 @@ export class EmailV2ProviderComponent implements OnInit {
}
}
openCreateProviderDialog() {
this.ref = this.dialogLauncherService.openEmailProviderDialog();
async openCreateProviderDialog() {
this.ref = await this.dialogLauncherService.openEmailProviderDialog().catch(() => null);
this.ref?.onClose.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((result) => {
if (result) {
this.loadEmailProviders();
@@ -140,8 +140,8 @@ export class EmailV2RecipientComponent implements OnInit {
}
}
openAddRecipientDialog() {
this.ref = this.dialogLauncherService.openEmailRecipientDialog();
async openAddRecipientDialog() {
this.ref = await this.dialogLauncherService.openEmailRecipientDialog().catch(() => null);
this.ref?.onClose.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((result) => {
if (result) {
this.loadRecipientEmails();
@@ -100,8 +100,8 @@ export class UserManagementComponent implements OnInit {
});
}
openCreateUserDialog() {
this.ref = this.dialogLauncherService.openCreateUserDialog();
async openCreateUserDialog() {
this.ref = await this.dialogLauncherService.openCreateUserDialog().catch(() => null);
this.ref?.onClose.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((result) => {
if (result) {
this.loadUsers();