Change description in numbers card in monitor dashboard. Fix infinite loop from last commit in error page.
This commit is contained in:
parent
7e4e6e6d46
commit
bfd19dfaf3
|
@ -201,11 +201,6 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||||
} else {
|
} else {
|
||||||
this.activeCategory = this.activeTopic.categories.find(category => this.isPublicOrIsMember(category.visibility));
|
this.activeCategory = this.activeTopic.categories.find(category => this.isPublicOrIsMember(category.visibility));
|
||||||
}
|
}
|
||||||
if(!this.activeCategory) {
|
|
||||||
this.navigateToError();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.navigateToError();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,49 +102,39 @@
|
||||||
<h5 *ngIf="number.title" class="uk-width-1-1 uk-margin-bottom">{{number.title}}</h5>
|
<h5 *ngIf="number.title" class="uk-width-1-1 uk-margin-bottom">{{number.title}}</h5>
|
||||||
<ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index">
|
<ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index">
|
||||||
<div *ngIf="isPublicOrIsMember(indicator.visibility)" [ngClass]="getNumberClassBySize(indicator.width)">
|
<div *ngIf="isPublicOrIsMember(indicator.visibility)" [ngClass]="getNumberClassBySize(indicator.width)">
|
||||||
<div class="uk-card uk-card-default uk-padding-small number-card"
|
<div class="uk-card uk-card-default uk-padding-small number-card uk-position-relative"
|
||||||
[class.semiFiltered]="indicator.indicatorPaths[0].filtersApplied < countSelectedFilters()">
|
[class.semiFiltered]="indicator.indicatorPaths[0].filtersApplied < countSelectedFilters()">
|
||||||
<!--<div *ngIf="properties.environment === 'development'">
|
<div *ngIf="!showDescriptionOverlay[j]">
|
||||||
Filtered:{{indicator.indicatorPaths[0].filtersApplied}}out of{{countSelectedFilters()}}
|
<div class="uk-text-xsmall uk-text-truncate uk-margin-xsmall-bottom uk-margin-right">{{indicator.name}}</div>
|
||||||
</div>-->
|
<div class="number uk-text-small uk-text-bold">
|
||||||
<div class="uk-text-xsmall uk-margin-xsmall-bottom">{{indicator.name}}</div>
|
<span *ngIf="numberResults.get(i + '-' + j)">{{numberResults.get(i + '-' + j) | number}}</span>
|
||||||
<div class="number uk-text-small uk-text-bold">
|
<span *ngIf="!numberResults.get(i + '-' + j)">--</span>
|
||||||
<span *ngIf="numberResults.get(i + '-' + j)">{{numberResults.get(i + '-' + j) | number}}</span>
|
</div>
|
||||||
<span *ngIf="!numberResults.get(i + '-' + j)">--</span>
|
<div *ngIf="indicator.description || indicator.additionalDescription"
|
||||||
|
class="uk-position-top-right uk-text-center uk-margin-small-top uk-margin-small-right">
|
||||||
|
<a class="uk-display-inline-block uk-button uk-button-link" uk-tooltip="Note" (click)="toggleDescriptionOverlay($event, j)">
|
||||||
|
<span class="uk-flex uk-flex-middle">
|
||||||
|
<icon name="analytics" type="outlined" [flex]="true"></icon>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- for printing only -->
|
<div *ngIf="showDescriptionOverlay[j] && (indicator.description || indicator.additionalDescription)" click-outside-or-esc class="uk-overflow-auto"
|
||||||
<span *ngIf="numberResults.get(i + '-' + j)"
|
(clickOutside)="closeDescriptionOverlay($event, j)">
|
||||||
class="uk-text-bold uk-hidden">{{numberResults.get(i + '-' + j) | number}}</span>
|
<div class="uk-position-top-right uk-text-center uk-margin-small-top uk-margin-small-right">
|
||||||
<!-- ----------------- -->
|
<a class="uk-display-inline-block uk-button uk-button-link" (click)="toggleDescriptionOverlay($event, j)">
|
||||||
<div *ngIf="indicator.description || indicator.additionalDescription"
|
<span class="uk-flex uk-flex-middle">
|
||||||
class="uk-position-bottom-right uk-text-center uk-margin-small-bottom uk-margin-small-right">
|
<icon name="close" type="outlined" [flex]="true"></icon>
|
||||||
<a class="uk-display-inline-block uk-button uk-button-text"
|
</span>
|
||||||
(click)="toggleDescriptionOverlay($event, j)">
|
</a>
|
||||||
<span class="uk-flex uk-flex-middle">
|
</div>
|
||||||
<icon name="analytics" type="outlined" [flex]="true"></icon>
|
<div class="uk-margin-small-top uk-margin-right">
|
||||||
<span class="uk-margin-small-left">Note</span>
|
<p *ngIf="indicator.description">
|
||||||
</span>
|
{{indicator.description}}
|
||||||
</a>
|
</p>
|
||||||
</div>
|
<p *ngIf="indicator.additionalDescription">
|
||||||
<div *ngIf="showDescriptionOverlay[j] && (indicator.description || indicator.additionalDescription)"
|
{{indicator.additionalDescription}}
|
||||||
class="indicator-description uk-card uk-card-default uk-flex uk-flex-middle uk-flex-center">
|
</p>
|
||||||
<div class="inner" click-outside-or-esc
|
|
||||||
(clickOutside)="closeDescriptionOverlay($event, j)">
|
|
||||||
<div class="uk-padding-small">
|
|
||||||
<div class="uk-flex uk-flex-right">
|
|
||||||
<button class="uk-close uk-icon" (click)="toggleDescriptionOverlay($event, j)">
|
|
||||||
<icon name="close" ratio="1"></icon>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="uk-padding-small uk-padding-remove-horizontal">
|
|
||||||
<p *ngIf="indicator.description">
|
|
||||||
{{indicator.description}}
|
|
||||||
</p>
|
|
||||||
<p *ngIf="indicator.additionalDescription">
|
|
||||||
{{indicator.additionalDescription}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -78,7 +78,6 @@ export class MonitorComponent implements OnInit, OnDestroy {
|
||||||
privateStakeholder = false;
|
privateStakeholder = false;
|
||||||
public keyword: UntypedFormControl;
|
public keyword: UntypedFormControl;
|
||||||
public statsUpdateDate: Date;
|
public statsUpdateDate: Date;
|
||||||
public stickyPageHeader: boolean = false;
|
|
||||||
public showDescriptionOverlay: boolean[] = [];
|
public showDescriptionOverlay: boolean[] = [];
|
||||||
|
|
||||||
public isFullscreen: boolean = false;
|
public isFullscreen: boolean = false;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 75433ae50ab42a5ad1aea2a26ec26c57e78e4a25
|
Subproject commit 24779729b6f6bd4f099ed5645786b6452120d3d6
|
Loading…
Reference in New Issue