Fix a bug while getting numbers of previous active subcategory. Fix sidebar in topics
This commit is contained in:
parent
bf97a1ff2a
commit
74934c1a8b
|
@ -483,7 +483,9 @@ export class MonitorComponent implements OnInit, OnDestroy {
|
|||
});
|
||||
urls.forEach((indexes, pair) => {
|
||||
pair = JSON.parse(pair);
|
||||
let activeSubcategory = this.activeSubCategory._id;
|
||||
this.subscriptions.push(this.statisticsService.getNumbers(this.statisticsService.getSourceType(pair[0]), pair[1]).subscribe(response => {
|
||||
if(activeSubcategory === this.activeSubCategory._id) {
|
||||
indexes.forEach(([i, j]) => {
|
||||
let result = JSON.parse(JSON.stringify(response));
|
||||
this.activeSubCategory.numbers[i].indicators[j].indicatorPaths[0].jsonPath.forEach(jsonPath => {
|
||||
|
@ -501,6 +503,7 @@ export class MonitorComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
this.numberResults.set(i + '-' + j, result);
|
||||
});
|
||||
}
|
||||
}));
|
||||
});
|
||||
this.activeSubCategory.charts.forEach((section, i) => {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 3acd9a6c29cd54699f27ea58fd9664e07526d589
|
||||
Subproject commit 5454509b55e817b9320a128920d03cb75b5ac44d
|
|
@ -14,8 +14,7 @@
|
|||
<ul class="uk-list uk-nav uk-nav-default uk-nav-parent-icon" transition-group [id]="'topics'" uk-nav="duration: 400">
|
||||
<li *ngFor="let topic of stakeholder.topics; let i=index" class="uk-parent" [class.uk-active]="topicIndex === i" transition-group-item>
|
||||
<a [routerLink]="'/admin/'+stakeholder.alias + '/indicators/' + topic.alias"
|
||||
[title]="topic.name" class="uk-visible-toggle">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
[title]="topic.name" class="uk-visible-toggle uk-flex uk-flex-middle">
|
||||
<div *ngIf="topic.icon" class="uk-width-auto">
|
||||
<icon class="menu-icon" [svg]="topic.icon" ratio="0.9" [flex]="true"></icon>
|
||||
</div>
|
||||
|
@ -90,7 +89,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
<ul *ngIf="isBrowser || topicIndex === i" class="uk-nav-sub" [id]="'categories-' + i.toString()" transition-group>
|
||||
<li *ngFor="let category of topic.categories; let j=index" transition-group-item class="uk-visible-toggle" [class.uk-active]="categoryIndex == j">
|
||||
|
@ -173,7 +171,7 @@
|
|||
</li>
|
||||
<li *ngIf="isCurator" class="hide-on-close">
|
||||
<a (click)="editTopicOpen(-1); $event.preventDefault()">
|
||||
<div class="uk-flex uk-flex-middle uk-flex-center">
|
||||
<div class="uk-flex uk-flex-middle">
|
||||
<div class="uk-width-auto">
|
||||
<icon class="menu-icon" name="add" [flex]="true"></icon>
|
||||
</div>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 99ecab0b4e9ceed21424c8fa26ef270b4695b11e
|
||||
Subproject commit 78c51f00f766b53cd516eac381e676f0be9ad20f
|
Loading…
Reference in New Issue