diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index 8aa1936..434a7f0 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -65,8 +65,8 @@ [activeItem]="activeCategory?activeCategory.alias:null" [activeSubItem]="activeSubCategory?activeSubCategory.alias:null" [showHeader]=false > -
+ +
-
+
+
+
+ {{activeSubCategory && activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description + : (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description : + (activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}} +
+
+
+
No indicators available yet. Stay tuned! @@ -107,23 +130,6 @@
-
-
-
- {{activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description - : (activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description : - (activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}} -
-
-
{ this.user = user; - this.buildMenu(); this.route.params.subscribe(params => { + this.loading = true; if (subscription) { subscription.unsubscribe(); } @@ -99,6 +99,8 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent this.route.queryParams.subscribe(params => { this.isViewPublic = (params['view'] == 'public'); }); + this.buildMenu(); + if (!this.stakeholder || this.stakeholder.alias !== params['stakeholder']) { this.status = this.errorCodes.LOADING; this.numberResults = new Map(); @@ -293,6 +295,7 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent items.push(new MenuItem('noCategories', 'No categories available yet', "", "", false, [], [], {})); } this.sideBarItems = items; + this.loading = false; } private setIndicators() {