airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata-django-portal] 03/03: AIRAVATA-3221 Keep InputFileSelector in UI until uploading finishes
Date Mon, 07 Oct 2019 16:43:17 GMT
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit 88f974f03426de5295320abf7d5d693e7bb358d2
Author: Marcus Christie <machristie@apache.org>
AuthorDate: Mon Oct 7 12:42:30 2019 -0400

    AIRAVATA-3221 Keep InputFileSelector in UI until uploading finishes
---
 .../experiment/input-editors/FileInputEditor.vue        | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue
index d3059ce..71ffc8d 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/FileInputEditor.vue
@@ -41,10 +41,10 @@
       </b-link>
     </div>
     <input-file-selector
-      v-if="!isDataProductURI"
+      v-if="!isDataProductURI || uploading"
       :selectedDataProductURIs="selectedDataProductURIs"
-      @uploadstart="$emit('uploadstart')"
-      @uploadend="$emit('uploadend')"
+      @uploadstart="uploadStart"
+      @uploadend="uploadEnd"
       @selected="fileSelected"
     />
   </div>
@@ -90,7 +90,8 @@ export default {
   data() {
     return {
       dataProduct: null,
-      fileContent: null
+      fileContent: null,
+      uploading: false
     };
   },
   created() {
@@ -148,6 +149,14 @@ export default {
           this.fileContent = text;
           this.$refs.modal.show();
         });
+    },
+    uploadStart() {
+      this.uploading = true;
+      this.$emit("uploadstart");
+    },
+    uploadEnd() {
+      this.uploading = false;
+      this.$emit("uploadend");
     }
   }
 };


Mime
View raw message