This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/develop by this push:
new 9bb685a AIRAVATA-3492 Handle deselecting the default queue in
ApplicationDeploymentEditor
9bb685a is described below
commit 9bb685a007a73e0f4c9e7577bc401d69d7448f44
Author: Marcus Christie <[email protected]>
AuthorDate: Thu Jul 29 17:46:58 2021 -0400
AIRAVATA-3492 Handle deselecting the default queue in
ApplicationDeploymentEditor
---
.../applications/ApplicationDeploymentEditor.vue | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git
a/django_airavata/apps/admin/static/django_airavata_admin/src/components/applications/ApplicationDeploymentEditor.vue
b/django_airavata/apps/admin/static/django_airavata_admin/src/components/applications/ApplicationDeploymentEditor.vue
index 615b9af..c9d1dc0 100644
---
a/django_airavata/apps/admin/static/django_airavata_admin/src/components/applications/ApplicationDeploymentEditor.vue
+++
b/django_airavata/apps/admin/static/django_airavata_admin/src/components/applications/ApplicationDeploymentEditor.vue
@@ -270,12 +270,18 @@ export default {
this.$emit("cancel");
},
defaultQueueChanged(queueName) {
- const queue = this.computeResource.batchQueues.find(
- (q) => q.queueName === queueName
- );
- this.data.defaultNodeCount = queue.defaultNodeCount;
- this.data.defaultCPUCount = queue.defaultCPUCount;
- this.data.defaultWalltime = queue.defaultWalltime;
+ if (queueName) {
+ const queue = this.computeResource.batchQueues.find(
+ (q) => q.queueName === queueName
+ );
+ this.data.defaultNodeCount = queue.defaultNodeCount;
+ this.data.defaultCPUCount = queue.defaultCPUCount;
+ this.data.defaultWalltime = queue.defaultWalltime;
+ } else {
+ this.data.defaultNodeCount = null;
+ this.data.defaultCPUCount = null;
+ this.data.defaultWalltime = null;
+ }
},
savedSharedEntity(newSharedEntity) {
this.$emit("sharing-changed", newSharedEntity, this.data, false);