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 44f53308 AIRAVATA-3612: Enable `disable` property on compute resource 
selector and group resource selector
     new 77839b10 Merge pull request #79 from 
dinukadesilva/AIRAVATA-3612-enable-disable-property-on-computer-resource-selector-and-group-resource-selector
44f53308 is described below

commit 44f5330867ceceb25aaab5408ed8a3a10add6cd9
Author: Dinuka De Silva <[email protected]>
AuthorDate: Tue Apr 26 19:08:31 2022 -0400

    AIRAVATA-3612: Enable `disable` property on compute resource selector and 
group resource selector
---
 .../js/web-components/ComputeResourceSelector.vue                   | 6 +++++-
 .../js/web-components/ExperimentComputeResourceSelector.vue         | 6 +++++-
 .../js/web-components/GroupResourceProfileSelector.vue              | 5 +++++
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ComputeResourceSelector.vue
 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ComputeResourceSelector.vue
index 60ff2a1c..e15dc262 100644
--- 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ComputeResourceSelector.vue
+++ 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ComputeResourceSelector.vue
@@ -6,7 +6,7 @@
       :options="computeResourceOptions"
       required
       @input="computeResourceChanged"
-      :disabled="computeResourceOptions.length === 0"
+      :disabled="disabled || computeResourceOptions.length === 0"
     >
       <template slot="first">
         <option :value="null" disabled>Select a Compute Resource</option>
@@ -31,6 +31,10 @@ export default {
       type: Array,
       default: null,
     },
+    disabled: {
+      type: Boolean,
+      default: false,
+    }
   },
   store: store,
   data() {
diff --git 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentComputeResourceSelector.vue
 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentComputeResourceSelector.vue
index 123f5709..f216b7d3 100644
--- 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentComputeResourceSelector.vue
+++ 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/ExperimentComputeResourceSelector.vue
@@ -1,6 +1,6 @@
 <template>
   <compute-resource-selector
-    :value="resourceHostId"
+    :value="resourceHostId" :disabled="disabled"
     :includedComputeResources="computeResources"
     @input.stop="computeResourceChanged"
   />
@@ -22,6 +22,10 @@ export default {
       type: String,
       required: true,
     },
+    disabled: {
+      type: Boolean,
+      default: false,
+    }
   },
   created() {
     this.$store.dispatch("initializeComputeResources", {
diff --git 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/GroupResourceProfileSelector.vue
 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/GroupResourceProfileSelector.vue
index 4569e712..3546dc73 100644
--- 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/GroupResourceProfileSelector.vue
+++ 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/GroupResourceProfileSelector.vue
@@ -7,6 +7,7 @@
       required
       @change="groupResourceProfileChanged"
       @input.native.stop
+      :disabled="disabled"
     >
       <template slot="first">
         <option :value="null" disabled>
@@ -35,6 +36,10 @@ export default {
       type: String,
       default: "Allocation",
     },
+    disabled: {
+      type: Boolean,
+      default: false,
+    }
   },
   store: store,
   created() {

Reply via email to