Skip to content

Commit 960d0d5

Browse files
committed
renaming
1 parent eeabdb0 commit 960d0d5

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

services/static-webserver/client/source/class/osparc/file/FileLabelWithActions.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
148148
this.__retrieveURLAndDownloadFile(this.__selection[0]);
149149
} else if (this.__selection.length > 1) {
150150
const paths = this.__selection.map(item => item.getPath());
151-
this.__retrieveURLAndDownloadPaths(paths);
151+
this.__retrieveURLAndExportData(paths);
152152
}
153153
} else if (this.__selection.length) {
154154
const selection = this.__selection[0];
@@ -157,7 +157,7 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
157157
this.__retrieveURLAndDownloadFile(selection);
158158
} else {
159159
const paths = [selection.getPath()];
160-
this.__retrieveURLAndDownloadPaths(paths);
160+
this.__retrieveURLAndExportData(paths);
161161
}
162162
}
163163
}
@@ -174,9 +174,9 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
174174
});
175175
},
176176

177-
__retrieveURLAndDownloadPaths: function(paths) {
177+
__retrieveURLAndExportData: function(paths) {
178178
const dataStore = osparc.store.Data.getInstance();
179-
const fetchPromise = dataStore.downloadPaths(paths);
179+
const fetchPromise = dataStore.exportData(paths);
180180
const pollTasks = osparc.store.PollTasks.getInstance();
181181
pollTasks.createPollingTask(fetchPromise)
182182
.then(task => this.__multiDownloadTaskReceived(task))
@@ -245,9 +245,9 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
245245
},
246246

247247
__multiDownloadTaskReceived: function(task) {
248-
const downloadPathsTaskUI = new osparc.task.osparc.task.DownloadPaths();
249-
downloadPathsTaskUI.setTask(task);
250-
osparc.task.TasksContainer.getInstance().addTaskUI(downloadPathsTaskUI);
248+
const exportDataTaskUI = new osparc.task.osparc.task.ExportData();
249+
exportDataTaskUI.setTask(task);
250+
osparc.task.TasksContainer.getInstance().addTaskUI(exportDataTaskUI);
251251

252252
const progressWindow = new osparc.ui.window.Progress(
253253
this.tr("Downloading files"),

services/static-webserver/client/source/class/osparc/store/Data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ qx.Class.define("osparc.store.Data", {
234234
return true;
235235
},
236236

237-
downloadPaths: function(paths) {
237+
exportData: function(paths) {
238238
if (!osparc.data.Permissions.getInstance().canDo("study.node.data.delete", true)) {
239239
return null;
240240
}

services/static-webserver/client/source/class/osparc/store/PollTasks.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ qx.Class.define("osparc.store.PollTasks", {
8383
return this.getTasks().filter(task => task.getTaskId().includes("from_study") && task.getTaskId().includes("as_template"));
8484
},
8585

86+
getExportDataTasks: function() {
87+
return this.getTasks().filter(task => task.getTaskId().includes("from_study") && task.getTaskId().includes("as_template"));
88+
},
89+
8690
removeTasks: function() {
8791
const tasks = this.getTasks();
8892
tasks.forEach(task => task.dispose());

services/static-webserver/client/source/class/osparc/task/DownloadPaths.js renamed to services/static-webserver/client/source/class/osparc/task/ExportData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
************************************************************************ */
1717

18-
qx.Class.define("osparc.task.DownloadPaths", {
18+
qx.Class.define("osparc.task.ExportData", {
1919
extend: osparc.task.TaskUI,
2020

2121
construct: function() {

0 commit comments

Comments
 (0)