[develop | DONE | CHANGED] monitor dashboard: make require login for filters optional
This commit is contained in:
parent
d74ee612c7
commit
8c64f47e54
|
@ -186,8 +186,7 @@
|
|||
<a *ngIf="countSelectedFilters() > 1" class="uk-text-small uk-margin-left" (click)="clearAll()"> Clear All </a>
|
||||
</div>
|
||||
<ng-container *ngTemplateOutlet="selected_filters_pills"></ng-container>
|
||||
<div *ngIf="!user" class="uk-margin-top"><a class="uk-link" (click)="logIn()"> Sign in</a> to apply filters.</div>
|
||||
<ul *ngIf="user" class="uk-list uk-list-xlarge uk-list-divider uk-margin-top">
|
||||
<ul class="uk-list uk-list-xlarge uk-list-divider uk-margin-top">
|
||||
<li>
|
||||
<range-filter #rangeFilter [filter]="periodFilter" yearMin="2000" [yearMax]="currentYear"
|
||||
[mandatoryRange]="true"
|
||||
|
|
|
@ -41,6 +41,7 @@ export class MonitorComponent extends MonitorIndicatorStakeholderBaseComponent {
|
|||
|
||||
ngOnInit() {
|
||||
super.ngOnInit();
|
||||
this.requireLogin = false;
|
||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.user = user;
|
||||
this.subscriptions.push(this._route.params.subscribe(params => {
|
||||
|
|
Loading…
Reference in New Issue