mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 01:41:14 -06:00
Fix some merge errors, integrate permissions for frontend mail
This commit is contained in:
@@ -246,14 +246,14 @@ export class SettingsComponent
|
||||
this.initialize(false)
|
||||
})
|
||||
} else if (
|
||||
(navID == SettingsNavIDs.UsersGroups && !this.users) ||
|
||||
!this.groups
|
||||
navID == SettingsNavIDs.UsersGroups &&
|
||||
(!this.users || !this.groups)
|
||||
) {
|
||||
this.usersService.listAll().subscribe((r) => {
|
||||
this.users = r.results
|
||||
this.groupsService.listAll().subscribe((r) => {
|
||||
this.groups = r.results
|
||||
this.initialize()
|
||||
this.initialize(false)
|
||||
})
|
||||
})
|
||||
} else if (
|
||||
@@ -724,6 +724,10 @@ export class SettingsComponent
|
||||
})
|
||||
}
|
||||
|
||||
getGroupName(id: number): string {
|
||||
return this.groups?.find((g) => g.id === id)?.name ?? ''
|
||||
}
|
||||
|
||||
editMailAccount(account: PaperlessMailAccount) {
|
||||
const modal = this.modalService.open(MailAccountEditDialogComponent, {
|
||||
backdrop: 'static',
|
||||
|
||||
Reference in New Issue
Block a user