disable plot types instead of hiding them

This commit is contained in:
2019-12-27 19:36:08 +01:00
parent 90244c6e4b
commit 1587046907
4 changed files with 10 additions and 9 deletions

View File

@@ -18,7 +18,7 @@
<mat-form-field>
<mat-label>Type:</mat-label>
<mat-select multiple [(ngModel)]="selectedPlotType" (ngModelChange)="changePlotType($event)">
<mat-option *ngFor="let plotType of plotTypes" [value]="plotType">
<mat-option *ngFor="let plotType of plotTypes" [value]="plotType" [disabled]="!plotType.active">
<img src="assets/img/{{plotType.icon}}.svg" class="icon-select" /> {{plotType.name}}
</mat-option>
</mat-select>