From 6e5ba8286944b117e3d3673dfe9224c4a4bb8f22 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 6 Nov 2024 16:26:21 +0100 Subject: [PATCH] =?UTF-8?q?fix(user-representation):=20UserRep.addedWho=20?= =?UTF-8?q?nullable=20machen,=20um=20die=20Annahme=20des=20aktuellen=20Ben?= =?UTF-8?q?utzers=20durch=20die=20API=20zu=20erm=C3=B6glichen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/models/user-management.api.models.ts | 2 +- .../pages/user-representation/user-representation.component.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/models/user-management.api.models.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/models/user-management.api.models.ts index 9af1b93..b5be45f 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/models/user-management.api.models.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/models/user-management.api.models.ts @@ -64,7 +64,7 @@ export interface UserRep { userId?: number, repGroupId?: number, groupId?: number, - addedWho: string, + addedWho?: string, repUser?: User user?: User, repGroup?: Group, diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/user-representation/user-representation.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/user-representation/user-representation.component.ts index 1184914..3dbfaa7 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/user-representation/user-representation.component.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/pages/user-representation/user-representation.component.ts @@ -100,7 +100,6 @@ export class UserRepresentationComponent extends BasePageComponent implements Af userId: this.slUserId, groupId: this.slGroupId, repUserId: this.slRepUserId, - addedWho: 'DEFAULT' } this.userRepService.create(newUserRep).subscribe({ next: (response) => { @@ -151,7 +150,6 @@ export class UserRepresentationComponent extends BasePageComponent implements Af userId: this.slUserId, groupId: this.slGroupId, repGroupId: this.slRepGroupId, - addedWho: 'DEFAULT' } this.userRepService.create(newUserRep).subscribe({ next: (res) => {