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/25 10:10:06 UTC
[incubator-dlab] branch DLAB-929 updated: [DLAB-929]: added extra
check to template 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
The following commit(s) were added to refs/heads/DLAB-929 by this push:
new 0777e30 [DLAB-929]: added extra check to template selection
0777e30 is described below
commit 0777e30739a70c1598ec02fc84cff6c5590448d5
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Thu Jul 25 13:09:53 2019 +0300
[DLAB-929]: added extra check to template selection
---
.../computational-resource-create-dialog.component.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
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 4592bf0..865e325 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
@@ -219,10 +219,13 @@
</div>
<div class="text-center m-top-30">
<button mat-raised-button type="button" (click)="dialogRef.close()" class="butt action">Cancel</button>
- <button mat-raised-button type="button" [disabled]="!resourceForm?.valid"
+ <button mat-raised-button type="button" [disabled]="!resourceForm?.valid ||
+ (selectedImage?.image === 'docker.dlab-dataengine-service' && !resourceForm.value.shape_slave) ||
+ (selectedImage?.image === 'docker.dlab-dataengine-service' && !resourceForm.value.version)"
(click)="createComputationalResource(resourceForm.value)" class="butt butt-success action"
[ngClass]="{'not-allowed': !resourceForm?.valid ||
- (selectedImage?.image === 'docker.dlab-dataengine-service' && !resourceForm.value.shape_slave) }">Create</button>
+ (selectedImage?.image === 'docker.dlab-dataengine-service' && !resourceForm.value.shape_slave) ||
+ (selectedImage?.image === 'docker.dlab-dataengine-service' && !resourceForm.value.version) }">Create</button>
</div>
</form>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org