refactor: Verwendung von Umgebungsvariablen für Spaltennamen im Konstruktor

This commit is contained in:
Developer 02 2024-07-23 15:06:37 +02:00
parent 0405c9722b
commit cf619fb982

View File

@ -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<GuiColumn>, @Inject('GROUP_RIGHT_TABLE_COLUMNS') groupRightColumns: Array<GuiColumn>) {
this.groupRepCols = groupRepCols;
this.groupRightColumns = groupRightColumns;
constructor(userRepService: UserRepService) {
this.groupRepCols = env.columnNames.group.representative;
this.groupRightColumns = env.columnNames.group.right;
this.userRepService = userRepService;
}