Skip to content

Commit

Permalink
config details added globally
Browse files Browse the repository at this point in the history
  • Loading branch information
brahmanand1 committed Jun 26, 2024
1 parent 7996676 commit b9ab7d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions UI/src/app/dashboard/filter/filter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export class FilterComponent implements OnInit, OnDestroy {
}
}
// this.filterForm?.get('date')?.setValue(this.dateRangeFilter?.counts?.[0]);
this.service.setGlobalConfigData(filterData['data']);
this.service.setSelectedDateFilter(this.selectedDayType);
this.filterForm?.get('date')?.setValue(this.dateRangeFilter?.counts?.[0]);
this.selectedDateFilter = `${this.filterForm?.get('date')?.value} ${this.selectedDayType}`;
Expand Down
9 changes: 9 additions & 0 deletions UI/src/app/services/shared.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class SharedService {
fieldMappingOptionsMetaData : any = []
kpiCardView : string = "chart";
maturityTableLoader = new Subject<boolean>();
globalConfigData = {}

constructor() {
this.passDataToDashboard = new EventEmitter();
Expand Down Expand Up @@ -370,6 +371,14 @@ export class SharedService {
getAddtionalFilterBackup(){
return this.addtionalFilterBackup;
}

setGlobalConfigData(data) {
this.globalConfigData = data;
}

getGlobalConfigData() {
return this.globalConfigData;
}
}


0 comments on commit b9ab7d5

Please sign in to comment.