You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/07/24 14:22:56 UTC
[incubator-dlab] 01/01: [DLAB-929]: added extra check to slave
shape selection
This is an automated email from the ASF dual-hosted git repository.
ankovalyshyn pushed a commit to branch DLAB-929
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 07d29cabf6932d47b913cceaa1d888950cff4438
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Wed Jul 24 17:19:31 2019 +0300
[DLAB-929]: added extra check to slave shape selection
---
.../computational-resource-create-dialog.component.html | 3 ++-
1 file changed, 2 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 79822d8..4592bf0 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
@@ -221,7 +221,8 @@
<button mat-raised-button type="button" (click)="dialogRef.close()" class="butt action">Cancel</button>
<button mat-raised-button type="button" [disabled]="!resourceForm?.valid"
(click)="createComputationalResource(resourceForm.value)" class="butt butt-success action"
- [ngClass]="{'not-allowed': !resourceForm?.valid}">Create</button>
+ [ngClass]="{'not-allowed': !resourceForm?.valid ||
+ (selectedImage?.image === 'docker.dlab-dataengine-service' && !resourceForm.value.shape_slave) }">Create</button>
</div>
</form>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org