diff --git a/frontend/src/app/filter-dialog/filter-dialog.component.ts b/frontend/src/app/filter-dialog/filter-dialog.component.ts index 9c876de..f751823 100644 --- a/frontend/src/app/filter-dialog/filter-dialog.component.ts +++ b/frontend/src/app/filter-dialog/filter-dialog.component.ts @@ -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); } diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts index b9db580..539c359 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts @@ -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 [])=>{