From affea90e9153bf4ae35789dea6f13a6ad0e8074b Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Fri, 20 Feb 2026 10:39:11 +0100 Subject: [PATCH] Renaming --- api/src/modules/customer/customer.service.ts | 2 +- .../app/modules/admin/all-users/all-users.component.ts | 2 +- .../handover-dialog/handover-dialog.component.html | 2 +- .../handover-dialog/handover-dialog.component.ts | 2 +- .../keys/components/lost-keys/lost-keys.component.ts | 2 +- client/src/app/modules/keys/keys.component.ts | 2 +- client/src/app/shared/api.service.ts | 8 ++++---- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api/src/modules/customer/customer.service.ts b/api/src/modules/customer/customer.service.ts index 3a69f89..9af30e9 100644 --- a/api/src/modules/customer/customer.service.ts +++ b/api/src/modules/customer/customer.service.ts @@ -12,7 +12,7 @@ export class CustomerService { throw new HttpException({ message: 'Der Benutzer ist nicht verfügbar.', field: 'user' }, HttpStatus.UNPROCESSABLE_ENTITY); } if (!data.name || data.name.length === 0) { - throw new HttpException({ message: 'Der Name des Kunden ist erforderlich.', field: 'name' }, HttpStatus.UNPROCESSABLE_ENTITY); + throw new HttpException({ message: 'Der Name des Mietern ist erforderlich.', field: 'name' }, HttpStatus.UNPROCESSABLE_ENTITY); } if (!data.system) { throw new HttpException({ message: 'Die Schließanlage ist nicht gefüllt.', field: 'system' }, HttpStatus.UNPROCESSABLE_ENTITY); diff --git a/client/src/app/modules/admin/all-users/all-users.component.ts b/client/src/app/modules/admin/all-users/all-users.component.ts index 1ab6573..81e068b 100644 --- a/client/src/app/modules/admin/all-users/all-users.component.ts +++ b/client/src/app/modules/admin/all-users/all-users.component.ts @@ -80,7 +80,7 @@ export class AllUsersComponent extends AgGridContainerComponent { 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.sendSystemUpdateMails', headerName: 'Schließanlageupdates', editable: true, columnGroupShow: "open" }, { field: 'settings.sendUserDisabledMails', headerName: 'User deaktiviert', editable: true, columnGroupShow: "open" } ] }, diff --git a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html index ddb2db7..985afa5 100644 --- a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html +++ b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html @@ -12,7 +12,7 @@ - Kunde + Mieter false, columnDefs: [ - { colId: 'customer', field: 'customer.name' , headerName: 'Kunde', flex: 1, editable: false, filter: false}, + { colId: 'customer', field: 'customer.name' , headerName: 'Mieter', flex: 1, editable: false, filter: false}, { colId: 'handedOut', field: 'direction' , diff --git a/client/src/app/modules/keys/components/lost-keys/lost-keys.component.ts b/client/src/app/modules/keys/components/lost-keys/lost-keys.component.ts index 10036d7..765cf2f 100644 --- a/client/src/app/modules/keys/components/lost-keys/lost-keys.component.ts +++ b/client/src/app/modules/keys/components/lost-keys/lost-keys.component.ts @@ -40,7 +40,7 @@ export class LostKeysComponent extends AgGridContainerComponent { cellRenderer: (data: any) => data.value?.map((m: ICylinder) => m.name).join(', ') }, { - colId: 'customer', field: 'customer.name', headerName: 'Kunde', flex: 1, filter: true, + colId: 'customer', field: 'customer.name', headerName: 'Mieter', flex: 1, filter: true, }, { colId: 'keyLost', field: 'keyLost', headerName: 'Verloren seit', width: 100, cellRenderer: (data: any) => this.datePipe.transform(new Date(data.value), 'dd.MM.yyyy'), diff --git a/client/src/app/modules/keys/keys.component.ts b/client/src/app/modules/keys/keys.component.ts index d09b26a..b79ad21 100644 --- a/client/src/app/modules/keys/keys.component.ts +++ b/client/src/app/modules/keys/keys.component.ts @@ -68,7 +68,7 @@ export class KeysComponent extends AgGridContainerComponent { }, valueFormatter: (data: any) => { return data; }, }, - { colId: 'customer', field: 'customer' , headerName: 'Kunde', flex: 1, editable: false, filter: true, + { colId: 'customer', field: 'customer' , headerName: 'Mieter', flex: 1, editable: false, filter: true, cellRenderer: (data: any) => {return data.value?.name}, filterValueGetter: (params: any) => {return params.data.customer?.name}, valueFormatter: (data: any) => { return data; }, diff --git a/client/src/app/shared/api.service.ts b/client/src/app/shared/api.service.ts index 7e11182..4161eea 100644 --- a/client/src/app/shared/api.service.ts +++ b/client/src/app/shared/api.service.ts @@ -143,7 +143,7 @@ export class ApiService { this.http.get('api/customer').subscribe({ next: (customers) => resolve(customers), error: (err) => { - this.toast.error('Fehler beim Laden der Kunden'); + this.toast.error('Fehler beim Laden der Mieter'); resolve([]); } @@ -180,8 +180,8 @@ export class ApiService { return new Promise(resolve => { this.http.delete(`api/system${system.id}`).pipe( this.toast.observe({ - loading: `Lösche Schließsystem ${system.name}...`, - success: `Schließsystem ${system.name} wurde gelöscht.`, + loading: `Lösche Schließanlage ${system.name}...`, + success: `Schließanlage ${system.name} wurde gelöscht.`, error: 'Es ist ein Fehler aufgetreten' }) ).subscribe({ @@ -247,7 +247,7 @@ export class ApiService { resolve() }, error: () => { - this.toast.error('Fehler beim Laden der Schließsysteme') + this.toast.error('Fehler beim Laden der Schließanlagee') }, complete: () => resolve() })