[Trunk | Monitor Dashboard]: monitor.component.ts: Initialize activeTopic, activeCategory, activeSubCategory when url path changes (Bug fix: When a topic has no content do not show previous content).

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@58692 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantina Galouni 2020-05-13 13:08:17 +00:00
parent d486f40208
commit a08453d950
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent
this.route.params.subscribe(params => { this.route.params.subscribe(params => {
this.loading = true; this.loading = true;
this.activeTopic = null;
this.activeCategory = null;
this.activeSubCategory = null;
if (subscription) { if (subscription) {
subscription.unsubscribe(); subscription.unsubscribe();
} }