[Monitor Dashboard | Trunk]: Hide additional information if user in not Admin

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@59778 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantinos Triantafyllou 2020-11-05 08:27:02 +00:00
parent 62fbea02fa
commit ec044a7320
1 changed files with 3 additions and 4 deletions

View File

@ -243,7 +243,7 @@
[formInput]="numberIndicatorFb.get('description')"
label="Description" type="textarea">
</div>
<div dashboard-input class="uk-width-1-1" [formInput]="numberIndicatorFb.get('additionalDescription')"
<div dashboard-input *ngIf="isAdministrator" class="uk-width-1-1" [formInput]="numberIndicatorFb.get('additionalDescription')"
label="Additional information" type="textarea">
</div>
@ -296,8 +296,7 @@
</div>
</div>
<div class="uk-flex uk-flex-middle">
<button
class="uk-icon-button uk-button-secondary uk-margin-medium-top"
<button class="uk-icon-button uk-button-secondary uk-margin-medium-top"
(click)="addJsonPath(i)">
<icon name="add"></icon>
</button>
@ -331,7 +330,7 @@
[formInput]="chartIndicatorFb.get('description')"
label="Description" type="textarea">
</div>
<div dashboard-input class="uk-width-1-1" [formInput]="chartIndicatorFb.get('additionalDescription')"
<div dashboard-input *ngIf="isAdministrator" 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')"