Enhancement: process mail button (#8466)

This commit is contained in:
shamoon
2024-12-11 11:03:53 -08:00
committed by GitHub
parent 2ac2a6dec6
commit dafb0b1f21
9 changed files with 196 additions and 49 deletions

View File

@@ -202,6 +202,17 @@ export class MailComponent
})
}
processAccount(account: MailAccount) {
this.mailAccountService.processAccount(account).subscribe({
next: () => {
this.toastService.showInfo($localize`Processing mail account`)
},
error: (e) => {
this.toastService.showError($localize`Error processing mail account`, e)
},
})
}
editMailRule(rule: MailRule = null, forceCreate = false) {
const modal = this.modalService.open(MailRuleEditDialogComponent, {
backdrop: 'static',