From cf619fb98280aae96e0030a1aa232a80805a4fef Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 23 Jul 2024 15:06:37 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20Verwendung=20von=20Umgebungsvariabl?= =?UTF-8?q?en=20f=C3=BCr=20Spaltennamen=20im=20Konstruktor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user-representation/user-representation.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/user-representation/user-representation.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/user-representation/user-representation.component.ts index 8a4c0d7..a7ad393 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/user-representation/user-representation.component.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/user-representation/user-representation.component.ts @@ -6,6 +6,7 @@ import { GroupTableComponent } from '../tables/group-table/group-table.component import { UserRepService } from '../../services/user-representation.service'; import Swal from 'sweetalert2'; import { MatTabsModule, MatTabGroup } from '@angular/material/tabs'; +import { env } from '../../../environments/environment'; @Component({ standalone: true, @@ -28,9 +29,9 @@ export class UserRepresentationComponent { initWithoutData = () => { } - constructor(userRepService: UserRepService, @Inject('GROUP_REP_TABLE_COLUMNS') groupRepCols: Array, @Inject('GROUP_RIGHT_TABLE_COLUMNS') groupRightColumns: Array) { - this.groupRepCols = groupRepCols; - this.groupRightColumns = groupRightColumns; + constructor(userRepService: UserRepService) { + this.groupRepCols = env.columnNames.group.representative; + this.groupRightColumns = env.columnNames.group.right; this.userRepService = userRepService; }