Skip to content

Commit

Permalink
Hiding Malcolm import button when not in RENEW mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrwins committed Jan 11, 2024
1 parent 0c61e55 commit 3ff630f
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ <h4>Network Diagram</h4>
<button class="btn btn-primary" (click)="navToDiagram('')"><i
class="fas fa-project-diagram mr-2"></i>{{buttonText}}</button>

<label for="importFile" class="btn btn-primary cset-icons-import">
Import Malcolm
</label>
<input type="file" class="display-none" id="importFile" multiple
accept=".json" (change)="uploadMalcolmData($event)">
<span *ngIf="configSvc.installationMode == 'RENEW'">
<label for="importFile" class="btn btn-primary cset-icons-import">
Import Malcolm
</label>
<input type="file" class="display-none" id="importFile" multiple
accept=".json" (change)="uploadMalcolmData($event)">
</span>
</div>

<app-nav-back-next [page]="'diagram'"></app-nav-back-next>
Expand Down

0 comments on commit 3ff630f

Please sign in to comment.