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/04: AIRAVATA-3101 check input value before trying to load as data product
Date Wed, 10 Jul 2019 18:58:08 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 98ef70567a9a6772d7ed5a9e52fd3650eb2ab585
Author: Marcus Christie <machristie@apache.org>
AuthorDate: Wed Jul 10 13:11:05 2019 -0400

    AIRAVATA-3101 check input value before trying to load as data product
---
 .../js/components/experiment/input-editors/FileInputEditor.vue          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 c1daef4..5446dcd 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
@@ -70,7 +70,7 @@ export default {
   computed: {
     isDataProductURI() {
       // Just assume that if the value is a string then it's a data product URL
-      return this.value && typeof this.value === "string";
+      return this.value && typeof this.value === "string" && this.value.startsWith("airavata-dp://");
     },
     // When used in the MultiFileInputEditor, don't allow selecting the same
     // file more than once. This computed property creates an array of already


Mime
View raw message