schlüssel neuen zylindern zuordnen geht
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user