mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Enhancement: process mail button (#8466)
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user