Notifications

This commit is contained in:
Bastian Wagner
2025-01-20 15:15:41 +01:00
parent adca81444e
commit 2674ec0d24
25 changed files with 126 additions and 35 deletions

View File

@@ -74,7 +74,16 @@ export class AllUsersComponent {
this.deleteUser(event.data.id);
}
},
}
},
{
headerName: 'Benachrichtigungen',
children: [
{ columnGroupShow: "closed", width: 180 , cellRenderer: 'agCheckboxCellRenderer', valueGetter: (data: any) => { return Object.values(data.data.settings).filter(v => typeof v == 'boolean').some((x: any) => x)}, type: 'boolean' },
{ field: 'settings.sendSystemAccessMails', headerName: 'Schlüssesystemzugriff', editable: true, columnGroupShow: "open" },
{ field: 'settings.sendSystemUpdateMails', headerName: 'Schließsystemupdates', editable: true, columnGroupShow: "open" },
{ field: 'settings.sendUserDisabledMails', headerName: 'User deaktiviert', editable: true, columnGroupShow: "open" }
]
},
],
loading: true,
overlayLoadingTemplate: 'Lade Daten...'

View File

@@ -62,7 +62,6 @@ export class CreateKeyComponent {
}
save() {
console.log(this.createForm.value)
this.api.createKey(this.createForm.value as any)
.pipe(
@@ -93,7 +92,6 @@ export class CreateKeyComponent {
next: c => {
if (c) {
this.createForm.controls.cylinder.patchValue(c);
console.log(c);
}
}
})

View File

@@ -195,7 +195,6 @@ export class KeysComponent {
disableClose: true
}).afterClosed().subscribe({
next: changed => {
console.log(changed)
if (changed) {
this.loadKeys();
}