From f6dbd2451b800e4543a80eb4cb09ce312ef6b779 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 3 Jan 2020 20:50:14 -0500 Subject: [PATCH] Merge _uploadFtp functionality between collection and default uploads. --- .../scripts/components/Upload/Collection.vue | 3 +- .../scripts/components/Upload/Default.vue | 29 ------------------- .../components/Upload/UploadBoxMixin.js | 26 +++++++++++++++++ 3 files changed, 28 insertions(+), 30 deletions(-) diff --git a/client/galaxy/scripts/components/Upload/Collection.vue b/client/galaxy/scripts/components/Upload/Collection.vue index af3ccfca370f..523dc6f49f48 100644 --- a/client/galaxy/scripts/components/Upload/Collection.vue +++ b/client/galaxy/scripts/components/Upload/Collection.vue @@ -239,7 +239,6 @@ export default { /** Success */ _eventSuccess: function(index, message) { - // var hdaId = message["outputs"][0]["id"]; var hids = _.pluck(message["outputs"], "hid"); var it = this.collection.get(index); it.set({ percentage: 100, status: "success", hids: hids }); @@ -281,6 +280,8 @@ export default { this.appModel.set({ percentage: 0, status: "success" }); this.counterRunning = this.counterAnnounce; this.history_id = this.app.currentHistory(); + // package ftp files separately, and remove them from queue + this._uploadFtp(); this.uploadbox.start(); this._updateStateForCounters(); }, diff --git a/client/galaxy/scripts/components/Upload/Default.vue b/client/galaxy/scripts/components/Upload/Default.vue index 34a3190d6e99..53c2654ddf44 100644 --- a/client/galaxy/scripts/components/Upload/Default.vue +++ b/client/galaxy/scripts/components/Upload/Default.vue @@ -103,7 +103,6 @@