You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/07/01 18:52:46 UTC

[airavata-django-portal] branch develop updated: AIRAVATA-3469 Add corresponding download file link in storage browser

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 1df4f32  AIRAVATA-3469 Add corresponding download file link in storage browser
1df4f32 is described below

commit 1df4f326edc66be00b54a48b65f797c7180d1f14
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Thu Jul 1 14:48:23 2021 -0400

    AIRAVATA-3469 Add corresponding download file link in storage browser
---
 .../js/components/storage/ExperimentStoragePathViewer.vue         | 8 ++++++++
 .../js/components/storage/UserStoragePathViewer.vue               | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/ExperimentStoragePathViewer.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/ExperimentStoragePathViewer.vue
index 44d46ac..a5fde6e 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/ExperimentStoragePathViewer.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/ExperimentStoragePathViewer.vue
@@ -29,6 +29,14 @@
       </template>
       <template slot="actions" slot-scope="data">
         <b-link
+          v-if="data.item.type === 'file'"
+          class="action-link"
+          :href="`${data.item.downloadURL}&download`"
+        >
+          Download File
+          <i class="fa fa-download" aria-hidden="true"></i>
+        </b-link>
+        <b-link
           v-if="data.item.type === 'dir'"
           class="action-link"
           :href="`/sdk/download-experiment-dir/${encodeURIComponent(
diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/UserStoragePathViewer.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/UserStoragePathViewer.vue
index f26539f..425b396 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/UserStoragePathViewer.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/storage/UserStoragePathViewer.vue
@@ -58,6 +58,14 @@
         </b-button>
 
         <b-link
+          v-if="data.item.type === 'file'"
+          class="action-link"
+          :href="`${data.item.downloadURL}&download`"
+        >
+          Download File
+          <i class="fa fa-download" aria-hidden="true"></i>
+        </b-link>
+        <b-link
           v-if="data.item.type === 'dir'"
           class="action-link"
           :href="`/sdk/download-dir?path=${data.item.path}`"