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 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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user