[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>
|
<a *ngIf="countSelectedFilters() > 1" class="uk-text-small uk-margin-left" (click)="clearAll()"> Clear All </a>
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngTemplateOutlet="selected_filters_pills"></ng-container>
|
<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 class="uk-list uk-list-xlarge uk-list-divider uk-margin-top">
|
||||||
<ul *ngIf="user" class="uk-list uk-list-xlarge uk-list-divider uk-margin-top">
|
|
||||||
<li>
|
<li>
|
||||||
<range-filter #rangeFilter [filter]="periodFilter" yearMin="2000" [yearMax]="currentYear"
|
<range-filter #rangeFilter [filter]="periodFilter" yearMin="2000" [yearMax]="currentYear"
|
||||||
[mandatoryRange]="true"
|
[mandatoryRange]="true"
|
||||||
|
|
|
@ -41,6 +41,7 @@ export class MonitorComponent extends MonitorIndicatorStakeholderBaseComponent {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
super.ngOnInit();
|
super.ngOnInit();
|
||||||
|
this.requireLogin = false;
|
||||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||||
this.user = user;
|
this.user = user;
|
||||||
this.subscriptions.push(this._route.params.subscribe(params => {
|
this.subscriptions.push(this._route.params.subscribe(params => {
|
||||||
|
|
Loading…
Reference in New Issue