schlüssel neuen zylindern zuordnen geht

This commit is contained in:
Bastian Wagner
2026-02-22 17:08:50 +01:00
parent 6797b73eb1
commit e5c590165c
13 changed files with 163 additions and 1338 deletions

View File

@@ -78,16 +78,11 @@ export class LostKeysComponent extends AgGridContainerComponent {
markAsFound(key: IKey) {
this.dialog.open(LostKeyComponent, { data: key, autoFocus: false }).afterClosed().subscribe({
next: (result) => {
next: async (result) => {
if (result == "") {
key.keyLost = null;
this.api.updateKey(key).subscribe({
next: () => {
this.toast.success('Schlüssel als gefunden markiert');
this.loadLostKeys();
this.api.refreshKeys();
}
});
await this.api.updateKey(key);
this.loadLostKeys();
this.dataChanged = true;
}
}