hide y2 axis definition instead of removing it

Using ngIf has the undesired side effect that the values are lost when
the input fields are not shown.
This commit is contained in:
2020-04-05 08:50:11 +02:00
parent 16d2c334fa
commit 3c88969885

View File

@@ -46,7 +46,7 @@
</mat-form-field> </mat-form-field>
<pdb-y-axis-definition #y1AxisDefinitionComponent yIndex="1"></pdb-y-axis-definition> <pdb-y-axis-definition #y1AxisDefinitionComponent yIndex="1"></pdb-y-axis-definition>
<pdb-y-axis-definition #y2AxisDefinitionComponent yIndex="2" *ngIf="y2AxisAvailable"></pdb-y-axis-definition> <pdb-y-axis-definition #y2AxisDefinitionComponent yIndex="2" [hidden]="!y2AxisAvailable"></pdb-y-axis-definition>
<mat-checkbox [(ngModel)]="enableGallery">Gallery</mat-checkbox> <mat-checkbox [(ngModel)]="enableGallery">Gallery</mat-checkbox>