Skip to content

Commit 91be8a6

Browse files
committed
minor
1 parent b0398e9 commit 91be8a6

File tree

1 file changed

+9
-3
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+9
-3
lines changed

services/static-webserver/client/source/class/osparc/workbench/NodeUI.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,15 @@ qx.Class.define("osparc.workbench.NodeUI", {
398398
}
399399

400400
const lock = this.getChildControl("lock");
401-
node.getStatus().getLockState().bind("locked", lock, "visibility", {
402-
converter: nodeLocked => nodeLocked ? "visible" : "excluded"
403-
});
401+
if (node.isComputational()) {
402+
node.getStudy().bind("pipelineRunning", lock, "visibility", {
403+
converter: pipelineRunning => !pipelineRunning
404+
});
405+
} else if (node.isDynamic()) {
406+
node.getStatus().getLockState().bind("locked", lock, "visibility", {
407+
converter: nodeLocked => nodeLocked ? "visible" : "excluded"
408+
});
409+
}
404410

405411
this.__markerBtn.show();
406412
this.getNode().bind("marker", this.__markerBtn, "label", {

0 commit comments

Comments
 (0)