Manuel Tauber 2024-02-27 13:51:29 +01:00
parent da852888cd
commit a6ffb41ff1
2 changed files with 8 additions and 4 deletions

View File

@ -83,6 +83,10 @@ export class FilterDialogComponent implements OnInit {
if(data[0].userSg){
this.userSupportGroup = data[0].userSg;
}
this.dataService.fetchUserSupportGroup().then((res:any)=>{
console.log("\nNEW FETCHED USER SG IN FILTERCOMPONEN");
this.userSupportGroup = res.name;
});
}
/**
@ -150,10 +154,7 @@ export class FilterDialogComponent implements OnInit {
this.prevFiltersSg[0] = this.userSupportGroup;
}
this.dataService.fetchUserSupportGroup().then((res:any)=>{
console.log("\nNEW FETCHED USER SG IN FILTERCOMPONEN");
this.userSupportGroup = res.name;
});
//console.log(this.userSupportGroup);
if(this.languageService.language == 'DE'){
for (const state of this.dataService.getStates()) {
@ -169,6 +170,8 @@ export class FilterDialogComponent implements OnInit {
console.log("\nPUSHING SUPPORTGROUPS STORED IN DATASERVICE");
this.supportGroups.push(supportGroup.name);
}
// this.supportGroups.push(this.userSupportGroup);
for (const contract of this.dataService.getContracts()) {
this.contracts.push(contract.name);
}

View File

@ -414,6 +414,7 @@ export class NttGanttComponent implements OnInit {
this.dataService.fetchUserSupportGroup().then((res: any)=>{
this.userSupportGroup = res.name;
console.log(this.userSupportGroup);
this.refreshData();
this.states = this.dataService.getStates();
this.dataService.fetchStates().then((res: any [])=>{