Skip to content

Commit 269bc25

Browse files
committed
progress
1 parent 18a9131 commit 269bc25

File tree

1 file changed

+15
-5
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+15
-5
lines changed

services/static-webserver/client/source/class/osparc/data/model/Node.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,9 @@ qx.Class.define("osparc.data.model.Node", {
231231
// "inputConnected", // frontend only
232232
// "outputConnected", // frontend only
233233
// "logger", // frontend only
234-
/*
235-
"progress", // TODO
236-
*/
237-
"inputNodes", // !! not a property but goes into the model
238-
"inputsRequired", // !! not a property but goes into the model
234+
"inputNodes", // !! not a property but goes into the model
235+
"inputsRequired", // !! not a property but goes into the model
236+
"progress", // !! not a property but goes into the model
239237
],
240238

241239
isFrontend: function(metadata) {
@@ -1376,6 +1374,18 @@ qx.Class.define("osparc.data.model.Node", {
13761374
"osparc-resource": "node",
13771375
});
13781376
}, this);
1377+
1378+
if (this.isFilePicker()) {
1379+
this.getStatus().addListener("changeProgress", e => {
1380+
const data = e.getData();
1381+
this.fireDataEvent("updateStudyDocument", {
1382+
"op": "replace",
1383+
"path": `/workbench/${nodeId}/progress`,
1384+
"value": data,
1385+
"osparc-resource": "node",
1386+
});
1387+
});
1388+
}
13791389
},
13801390

13811391
serialize: function() {

0 commit comments

Comments
 (0)