summaryrefslogtreecommitdiffstats
path: root/public/src/app/bar-icons/bar-icons.component.html
diff options
context:
space:
mode:
authorManor, Yanir (ym903w) <ym903w@intl.att.com>2018-10-21 11:00:42 +0300
committerManor, Yanir (ym903w) <ym903w@intl.att.com>2018-10-21 11:00:42 +0300
commita0c5a22d123f1bdaa8ec7bfbf75f76cbe2ace29a (patch)
tree456198ada103cd23bd57f40b6475fb3c9a86fef5 /public/src/app/bar-icons/bar-icons.component.html
parent29ffa5ef26f82002bf894b9288e9a369a144388d (diff)
Update code to latest
Change-Id: I76b37c2d6d333204899c9bc87f310e5b607a5e73 Issue-ID: DCAEGEN2-836 Signed-off-by: Manor, Yanir (ym903w) <ym903w@intl.att.com>
Diffstat (limited to 'public/src/app/bar-icons/bar-icons.component.html')
-rw-r--r--public/src/app/bar-icons/bar-icons.component.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/src/app/bar-icons/bar-icons.component.html b/public/src/app/bar-icons/bar-icons.component.html
index bf201be..761a5cb 100644
--- a/public/src/app/bar-icons/bar-icons.component.html
+++ b/public/src/app/bar-icons/bar-icons.component.html
@@ -3,7 +3,7 @@
<div *ngIf="tabName.toLowerCase().includes('map') || tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp')"
style="display: flex; align-items: center;">
- <button mat-icon-button (click)="downloadRules()" pTooltip="Export" tooltipPosition="top">
+ <button mat-icon-button (click)="downloadRules()" pTooltip="Export" tooltipPosition="top" [disabled]="store.ruleList.length === 0">
<span style="width: 100%;
color:#5a5a5a;
height: 100%;
@@ -14,7 +14,7 @@
</button>
<hr>
- <button mat-icon-button (click)="enableImports()" data-tests-id="import-rules" pTooltip="Import" tooltipPosition="top">
+ <button mat-icon-button (click)="enableImports()" data-tests-id="import-rules" pTooltip="Import" tooltipPosition="top" [disabled]="store.viewOnly">
<span style="width: 100%;
color:#5a5a5a;
height: 100%;
@@ -59,7 +59,7 @@
</div>
<input *ngIf="isPropertyDdl(prop) === dropDownTypes.none" type="text" name="{{prop.name}}" class="field-text"
- [(ngModel)]="prop.value" (ngModelChange)="onChange($event)">
+ [readonly]="store.viewOnly" [(ngModel)]="prop.value" (ngModelChange)="onChange($event)">
<select *ngIf="isPropertyDdl(prop) === dropDownTypes.regularDDL" class="field-text" name="{{prop.name}}"
[(ngModel)]="prop.value" (ngModelChange)="onChange($event)">