Skip to content

Commit 4ce38d1

Browse files
committed
FP progress and outputs
1 parent 8ee52fa commit 4ce38d1

File tree

1 file changed

+17
-4
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+17
-4
lines changed

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

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,19 +1442,32 @@ qx.Class.define("osparc.data.model.Node", {
14421442
this.__setInputData(currentInputs);
14431443
break;
14441444
}
1445-
case "inputsUnits":
1446-
// this is never transmitted
1445+
case "inputsUnits": {
1446+
// this is never transmitted by the frontend
14471447
const updatedPortKey = path.split("/")[4];
14481448
const currentInputUnits = this.__getInputUnits();
14491449
currentInputUnits[updatedPortKey] = value;
14501450
this.__setInputUnits(currentInputUnits);
14511451
break;
1452+
}
14521453
case "inputNodes":
14531454
case "inputsRequired":
1454-
case "outputs":
1455-
case "progress":
14561455
console.warn(`To be implemented: patching ${nodeProperty} is not supported yet`);
14571456
break;
1457+
case "outputs": {
1458+
const updatedPortKey = path.split("/")[4];
1459+
const currentOutputs = this.isFilePicker() ? osparc.file.FilePicker.serializeOutput(this.getOutputs()) : this.__getOutputsData();
1460+
currentOutputs[updatedPortKey] = value;
1461+
this.setOutputData(currentOutputs);
1462+
break;
1463+
}
1464+
case "progress":
1465+
if (this.isFilePicker()) {
1466+
this.getStatus().setProgress(value);
1467+
} else {
1468+
console.warn(`To be implemented: patching ${nodeProperty} is not supported yet`);
1469+
}
1470+
break;
14581471
default:
14591472
if (nodePropertyKeys.includes(nodeProperty)) {
14601473
const setter = "set" + qx.lang.String.firstUp(nodeProperty);

0 commit comments

Comments
 (0)