This is an automated email from the ASF dual-hosted git repository. ytykhun pushed a commit to branch DATALAB-2421 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 7fc13da216465187c11fed4090b657abfd3e5832 Author: Yurii Tykhun <[email protected]> AuthorDate: Mon Jun 7 15:35:50 2021 +0300 [DATALAB-2421] fixed bug with adding cluster configuration template for Spark Standalone cluster --- .../computational-resource-create-dialog.component.html | 2 +- .../computational-resource-create-dialog.component.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html index 9f007c7..5a6b7aa 100644 --- a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html +++ b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html @@ -311,7 +311,7 @@ [hidden]="PROVIDER === 'gcp' && selectedImage?.image === 'docker.datalab-dataengine-service'" *ngIf="notebook_instance?.image !== 'docker.datalab-zeppelin'"> <div class="d-flex cursor-pointer label" (click)="addAdditionalParams('configuration')"> - <div class="empty-checkbox ml-10" [ngClass]="{'checked': isSelected.configuration}" (click)="selectConfiguration()"> + <div class="empty-checkbox ml-10" [ngClass]="{'checked': isSelected.configuration}"> <span class="checked-checkbox" *ngIf="isSelected.configuration"></span> </div> <span class="pl-5">Cluster configurations</span> diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts index 274efb1..76852a9 100644 --- a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts +++ b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts @@ -331,6 +331,11 @@ export class ComputationalResourceCreateDialogComponent implements OnInit { public addAdditionalParams(block: string) { this.isSelected[block] = !this.isSelected[block]; + + if (block === 'configuration') { + this.selectConfiguration(); + } + if (block === 'gpu') { const controls = ['master_GPU_type', 'master_GPU_count', 'slave_GPU_type', 'slave_GPU_count']; if (!this.isSelected.gpu) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
