[Monitor Dashboard | Trunk]: Hide additional information if indicator is new

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@59780 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantinos Triantafyllou 2020-11-05 08:34:05 +00:00
parent ec044a7320
commit 1331d48f60
2 changed files with 5 additions and 5 deletions

View File

@ -239,11 +239,11 @@
<div *ngIf="numberIndicatorFb" class="uk-padding-small" [formGroup]="numberIndicatorFb">
<div class="uk-grid" uk-grid>
<div dashboard-input class="uk-width-1-1" [formInput]="numberIndicatorFb.get('name')" label="Title"></div>
<div *ngIf="isAdministrator" dashboard-input class="uk-width-1-1"
<div dashboard-input class="uk-width-1-1"
[formInput]="numberIndicatorFb.get('description')"
label="Description" type="textarea">
</div>
<div dashboard-input *ngIf="isAdministrator" class="uk-width-1-1" [formInput]="numberIndicatorFb.get('additionalDescription')"
<div dashboard-input *ngIf="isAdministrator || indicator.defaultId" class="uk-width-1-1" [formInput]="numberIndicatorFb.get('additionalDescription')"
label="Additional information" type="textarea">
</div>
@ -326,11 +326,11 @@
<div *ngIf="chartIndicatorFb" class="uk-padding-small" [formGroup]="chartIndicatorFb">
<div class="uk-grid" uk-grid>
<div dashboard-input class="uk-width-1-1" [formInput]="chartIndicatorFb.get('name')" label="Title"></div>
<div *ngIf="isAdministrator" dashboard-input class="uk-width-1-1"
<div dashboard-input class="uk-width-1-1"
[formInput]="chartIndicatorFb.get('description')"
label="Description" type="textarea">
</div>
<div dashboard-input *ngIf="isAdministrator" class="uk-width-1-1" [formInput]="chartIndicatorFb.get('additionalDescription')"
<div dashboard-input *ngIf="isAdministrator || indicator.defaultId" class="uk-width-1-1" [formInput]="chartIndicatorFb.get('additionalDescription')"
label="Additional information" type="textarea">
</div>
<div dashboard-input class="uk-width-1-2@m" [formInput]="chartIndicatorFb.get('visibility')"

View File

@ -791,7 +791,7 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
}
public get isAdministrator(): boolean {
return Session.isPortalAdministrator(this.user) || Session.isMonitorCurator(this.user)
return false;
}
refreshIndicator() {