refactor: Verwendung von Umgebungsvariablen für Spaltennamen im Konstruktor
This commit is contained in:
parent
0405c9722b
commit
cf619fb982
@ -6,6 +6,7 @@ import { GroupTableComponent } from '../tables/group-table/group-table.component
|
|||||||
import { UserRepService } from '../../services/user-representation.service';
|
import { UserRepService } from '../../services/user-representation.service';
|
||||||
import Swal from 'sweetalert2';
|
import Swal from 'sweetalert2';
|
||||||
import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
||||||
|
import { env } from '../../../environments/environment';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
@ -28,9 +29,9 @@ export class UserRepresentationComponent {
|
|||||||
|
|
||||||
initWithoutData = () => { }
|
initWithoutData = () => { }
|
||||||
|
|
||||||
constructor(userRepService: UserRepService, @Inject('GROUP_REP_TABLE_COLUMNS') groupRepCols: Array<GuiColumn>, @Inject('GROUP_RIGHT_TABLE_COLUMNS') groupRightColumns: Array<GuiColumn>) {
|
constructor(userRepService: UserRepService) {
|
||||||
this.groupRepCols = groupRepCols;
|
this.groupRepCols = env.columnNames.group.representative;
|
||||||
this.groupRightColumns = groupRightColumns;
|
this.groupRightColumns = env.columnNames.group.right;
|
||||||
this.userRepService = userRepService;
|
this.userRepService = userRepService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user