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; }