File tree 1 file changed +12
-4
lines changed
frontend/src/app/resource-form/volume
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 10
10
<!-- Volume Name Input -->
11
11
< mat-form-field appearance ="outline " id ="name ">
12
12
< mat-label > Name</ mat-label >
13
- < input matInput formControlName ="name " *ngIf ="volume.value.type == 'New' " />
14
- < mat-select formControlName ="name " *ngIf ="volume.value.type == 'Existing' ">
15
- < mat-option *ngFor ="let pvc of existingPVCs " [value] ="pvc "> {{ pvc }}</ mat-option >
16
- </ mat-select >
13
+ < input
14
+ matInput
15
+ formControlName ="name "
16
+ *ngIf ="volume.value.type == 'New'; else existingPvcControl "
17
+ />
18
+ < ng-template #existingPvcControl >
19
+ < mat-select formControlName ="name ">
20
+ < mat-option *ngFor ="let pvc of existingPVCs " [value] ="pvc "> {{
21
+ pvc
22
+ }}</ mat-option >
23
+ </ mat-select >
24
+ </ ng-template >
17
25
</ mat-form-field >
18
26
19
27
<!-- Size Input -->
You can’t perform that action at this time.
0 commit comments