Skip to content

Commit 22d3c76

Browse files
committed
getLockState
1 parent 91be8a6 commit 22d3c76

File tree

1 file changed

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

1 file changed

+3
-9
lines changed

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

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

400400
const lock = this.getChildControl("lock");
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-
}
401+
node.getStatus().getLockState().bind("locked", lock, "visibility", {
402+
converter: nodeLocked => nodeLocked ? "visible" : "excluded"
403+
});
410404

411405
this.__markerBtn.show();
412406
this.getNode().bind("marker", this.__markerBtn, "label", {

0 commit comments

Comments
 (0)