perf(frontend): optimize initial bundle size with lazy-loaded dialogs and localized chart providers (#1110)
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user