forked from kubeflow/kubeflow
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show all existing PVCs as dropdown under volumes for a new notebook s…
…erver (kubeflow#5086) * show all existing PVCs as dropdown under volumes while creating a notebook server * show all existing PVCs as dropdown under volumes while creating a notebook server * Removing the stale pre submit tests
- Loading branch information
1 parent
d938fac
commit ad1c2df
Showing
2 changed files
with
58 additions
and
38 deletions.
There are no files selected for viewing
83 changes: 45 additions & 38 deletions
83
components/jupyter-web-app/frontend/src/app/resource-form/volume/volume.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,49 @@ | ||
<div *ngIf="volume" [formGroup]="volume" class="volume-wrapper"> | ||
<mat-form-field appearance="outline" id="type"> | ||
<mat-label>Type</mat-label> | ||
<mat-select formControlName="type"> | ||
<mat-option | ||
|
||
<!-- Volume Type Input --> | ||
<mat-form-field appearance="outline" id="type"> | ||
<mat-label>Type</mat-label> | ||
<mat-select (selectionChange)="selectType($event)" formControlName="type"> | ||
<mat-option *ngFor="let i of types" | ||
[disabled]="newTypeIsDisabled()" | ||
[matTooltip]="newTypeTooltip()" | ||
value="New" | ||
>New</mat-option | ||
> | ||
<mat-option value="Existing">Existing</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
value="{{i}}">{{i}}</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
|
||
<!-- Volume Name Input --> | ||
<mat-form-field *ngIf="typeSelected === 'New'" class="wide" appearance="outline" id="name"> | ||
<mat-label>Name</mat-label> | ||
<input matInput formControlName="name"/> | ||
</mat-form-field> | ||
|
||
<mat-form-field *ngIf="typeSelected === 'Existing'" class="wide" appearance="outline" id="name"> | ||
<mat-label>Name</mat-label> | ||
<mat-select formControlName="name"> | ||
<mat-option *ngFor="let i of existingPVCs" | ||
value="{{i}}">{{i}}</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
|
||
<!-- Volume Name Input --> | ||
<mat-form-field appearance="outline" id="name"> | ||
<mat-label>Name</mat-label> | ||
<input matInput formControlName="name" /> | ||
</mat-form-field> | ||
|
||
<!-- Size Input --> | ||
<mat-form-field appearance="outline" id="size"> | ||
<mat-label>Size</mat-label> | ||
<input matInput formControlName="size" /> | ||
</mat-form-field> | ||
|
||
<!-- Mode Input --> | ||
<mat-form-field appearance="outline" id="mode"> | ||
<mat-label>Mode</mat-label> | ||
<mat-select formControlName="mode"> | ||
<mat-option value="ReadWriteOnce">ReadWriteOnce</mat-option> | ||
<mat-option value="ReadOnlyMany">ReadOnlyMany</mat-option> | ||
<mat-option value="ReadWriteMany">ReadWriteMany</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
|
||
<!-- Mount Input --> | ||
<mat-form-field appearance="outline" id="path"> | ||
<mat-label>Mount Point</mat-label> | ||
<input matInput formControlName="path" /> | ||
</mat-form-field> | ||
</div> | ||
<!-- Size Input --> | ||
<mat-form-field *ngIf="typeSelected === 'New'" class="wide" appearance="outline" id="size"> | ||
<mat-label>Size</mat-label> | ||
<input matInput formControlName="size" /> | ||
</mat-form-field> | ||
|
||
<!-- Mode Input --> | ||
<mat-form-field *ngIf="typeSelected === 'New'" class="wide" appearance="outline" id="mode"> | ||
<mat-label>Mode</mat-label> | ||
<mat-select formControlName="mode"> | ||
<mat-option value="ReadWriteOnce">ReadWriteOnce</mat-option> | ||
<mat-option value="ReadOnlyMany">ReadOnlyMany</mat-option> | ||
<mat-option value="ReadWriteMany">ReadWriteMany</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
|
||
<!-- Mount Input --> | ||
<mat-form-field class="wide" appearance="outline" id="path"> | ||
<mat-label>Mount Point</mat-label> | ||
<input matInput formControlName="path" /> | ||
</mat-form-field> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters