This is an automated email from the ASF dual-hosted git repository. ankovalyshyn pushed a commit to branch feature/projects in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 1e3137528e7ad5ea4e5bd9d254e87c745dbc59ea Author: Andriana Kovalyshyn <[email protected]> AuthorDate: Mon Jun 3 16:26:00 2019 +0300 [DLAB-655]: added empty default options to selects --- .../exploratory-environment-create-dialog.component.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/exploratory-environment-create-dialog/exploratory-environment-create-dialog.component.html b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/exploratory-environment-create-dialog/exploratory-environment-create-dialog.component.html index 7f0d440..b5b9687 100644 --- a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/exploratory-environment-create-dialog/exploratory-environment-create-dialog.component.html +++ b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/exploratory-environment-create-dialog/exploratory-environment-create-dialog.component.html @@ -32,6 +32,7 @@ <mat-label>Select project</mat-label> <mat-select formControlName="project" disableOptionCentering> <mat-option *ngFor="let project of projects" [value]="project.name" (click)="getTemplates($event, project)">{{ project.name }}</mat-option> + <mat-option *ngIf="!projects.length" class="multiple-select" disabled>Projects list is empty</mat-option> </mat-select> <button class="caret"> <i class="material-icons">keyboard_arrow_down</i> @@ -47,6 +48,7 @@ <mat-label>Select endpoint</mat-label> <mat-select formControlName="endpoint" disableOptionCentering> <mat-option *ngFor="let endpoint of endpoints" [value]="endpoint">{{ endpoint }}</mat-option> + <mat-option *ngIf="!endpoints.length" class="multiple-select" disabled>Endpoints list is empty</mat-option> </mat-select> <button class="caret"> <i class="material-icons">keyboard_arrow_down</i> @@ -66,6 +68,7 @@ (click)="getShapes(template)"> {{ template.exploratory_environment_versions[0].template_name }} </mat-option> + <mat-option *ngIf="!templates.length" class="multiple-select" disabled>Templates list is empty</mat-option> </mat-select> <button class="caret"> <i class="material-icons">keyboard_arrow_down</i> @@ -82,6 +85,7 @@ <mat-select formControlName="notebook_image_name" disableOptionCentering> <mat-option [value]="null">None</mat-option> <mat-option *ngFor="let image of images" [value]="image.name">{{ image.name }}</mat-option> + <mat-option *ngIf="!images.length" class="multiple-select" disabled>Images list is empty</mat-option> </mat-select> <button class="caret"> <i class="material-icons">keyboard_arrow_down</i> @@ -131,7 +135,7 @@ <input #configurationNode type="checkbox" (change)="selectConfiguration()" /> Spark configurations </label> <div class="config-details" [ngClass]="{ show: configuration?.nativeElement['checked'] || false }"> - <textarea formControlName="cluster_config" placeholder="Cluster configuration template, JSON" data-gramm_editor="false"></textarea> + <textarea formControlName="cluster_config" placeholder="Cluster configuration template, JSON" data-gramm_editor="false" id="config"></textarea> <span class="error" *ngIf="!createExploratoryForm?.controls.cluster_config.valid && createExploratoryForm?.controls['cluster_config'].dirty">Configuration parameters is not in a valid format</span> </div> </div> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
