Skip to content

Commit 253a67c

Browse files
committed
outputs
1 parent 9562f76 commit 253a67c

File tree

1 file changed

+18
-0
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,24 @@ qx.Class.define("osparc.data.model.Node", {
13731373
});
13741374
}
13751375
break;
1376+
case "outputs":
1377+
if (this.isFilePicker() || this.isParameter()) {
1378+
this.addListener("changeOutputs", e => {
1379+
let data = e.getData();
1380+
if (this.isFilePicker()) {
1381+
data = osparc.file.FilePicker.serializeOutput(this.getOutputs());
1382+
} else if (this.isParameter()) {
1383+
data = this.__getOutputsData();
1384+
}
1385+
this.fireDataEvent("updateStudyDocument", {
1386+
"op": "replace",
1387+
"path": `/workbench/${nodeId}/outputs`,
1388+
"value": data,
1389+
"osparc-resource": "node",
1390+
});
1391+
}, this);
1392+
}
1393+
break;
13761394
default:
13771395
if (propertyKeys.includes(key)) {
13781396
this.addListener("change" + qx.lang.String.firstUp(key), e => {

0 commit comments

Comments
 (0)