Mail form tweaks

Include add button

Include add button
This commit is contained in:
Michael Shamoon
2022-11-09 19:59:35 -08:00
parent 18a7c01c06
commit ea2a680ab8
9 changed files with 116 additions and 118 deletions

View File

@@ -481,7 +481,7 @@ export class SettingsComponent
backdrop: 'static',
size: 'xl',
})
modal.componentInstance.dialogMode = 'edit'
modal.componentInstance.dialogMode = account ? 'edit' : 'create'
modal.componentInstance.object = account
modal.componentInstance.success
.pipe(takeUntil(this.unsubscribeNotifier))
@@ -523,7 +523,7 @@ export class SettingsComponent
backdrop: 'static',
size: 'xl',
})
modal.componentInstance.dialogMode = 'edit'
modal.componentInstance.dialogMode = rule ? 'edit' : 'create'
modal.componentInstance.object = rule
modal.componentInstance.success
.pipe(takeUntil(this.unsubscribeNotifier))