main
parent
5dc7acb078
commit
120a07fbf4
|
|
@ -146,10 +146,12 @@ export class FilterDialogComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.prevFiltersSg.length == 0){
|
if(this.prevFiltersSg.length == 0){
|
||||||
|
|
||||||
this.prevFiltersSg[0] = this.userSupportGroup;
|
this.prevFiltersSg[0] = this.userSupportGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dataService.fetchUserSupportGroup().then((res:any)=>{
|
this.dataService.fetchUserSupportGroup().then((res:any)=>{
|
||||||
|
console.log("\nNEW FETCHED USER SG IN FILTERCOMPONEN");
|
||||||
this.userSupportGroup = res.name;
|
this.userSupportGroup = res.name;
|
||||||
});
|
});
|
||||||
//console.log(this.userSupportGroup);
|
//console.log(this.userSupportGroup);
|
||||||
|
|
@ -164,6 +166,7 @@ export class FilterDialogComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const supportGroup of this.dataService.getSupportGroups()) {
|
for (const supportGroup of this.dataService.getSupportGroups()) {
|
||||||
|
console.log("\nPUSHING SUPPORTGROUPS STORED IN DATASERVICE");
|
||||||
this.supportGroups.push(supportGroup.name);
|
this.supportGroups.push(supportGroup.name);
|
||||||
}
|
}
|
||||||
for (const contract of this.dataService.getContracts()) {
|
for (const contract of this.dataService.getContracts()) {
|
||||||
|
|
@ -307,7 +310,7 @@ export class FilterDialogComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
let filter = {filterElement: filterElement};
|
let filter = {filterElement: filterElement};
|
||||||
//console.log(filter);
|
console.log(filter);
|
||||||
this.dialogRef.close(filter);
|
this.dialogRef.close(filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue