Skip to content

Commit e98c482

Browse files
committed
download result
1 parent 4237a1d commit e98c482

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,21 @@ qx.Class.define("osparc.file.FileLabelWithActions", {
281281
}
282282
}, this);
283283
task.addListener("resultReceived", e => {
284-
console.log(e.getData());
284+
const data = e.getData();
285+
if (data["result"]) {
286+
const link = data["result"];
287+
288+
const params = {
289+
url: {
290+
locationId: 0,
291+
fileUuid: link
292+
}
293+
};
294+
osparc.data.Resources.fetch("storageLink", "getOne", params)
295+
.then(data2 => {
296+
console.log(data2);
297+
})
298+
}
285299
progressWindow.close();
286300
});
287301
task.addListener("taskAborted", () => {

0 commit comments

Comments
 (0)