[Monitor Dashboard | Trunk]: Indicators: Build sections on an entity changed.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@60246 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
957934730c
commit
a1968a2899
|
@ -111,15 +111,13 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
|
||||||
}));
|
}));
|
||||||
this.subscriptions.push(this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => {
|
this.subscriptions.push(this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => {
|
||||||
this.stakeholder = stakeholder;
|
this.stakeholder = stakeholder;
|
||||||
if (this.stakeholder) {
|
if (this.stakeholder && this.firstLoad) {
|
||||||
this.buildFilters();
|
this.buildFilters();
|
||||||
this.buildSections();
|
this.buildSections();
|
||||||
if(this.firstLoad) {
|
|
||||||
this.filterCharts();
|
this.filterCharts();
|
||||||
this.filterNumbers();
|
this.filterNumbers();
|
||||||
this.firstLoad = false;
|
|
||||||
}
|
|
||||||
this.setPreview();
|
this.setPreview();
|
||||||
|
this.firstLoad = false;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -146,6 +144,7 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
if (this.canEdit) {
|
if (this.canEdit) {
|
||||||
if (changes.topicIndex || changes.categoryIndex || changes.subcategoryIndex) {
|
if (changes.topicIndex || changes.categoryIndex || changes.subcategoryIndex) {
|
||||||
|
this.buildSections();
|
||||||
this.buildFilters();
|
this.buildFilters();
|
||||||
this.initReorder();
|
this.initReorder();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue