[develop | DONE | CHANGED] monitor dashboard: make require login for filters optional

This commit is contained in:
argirok 2023-12-13 15:59:06 +02:00
parent d74ee612c7
commit 8c64f47e54
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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 => {