Skip to content

Commit c8cb648

Browse files
committed
undo
1 parent 8af549f commit c8cb648

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,9 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
805805
}
806806

807807
if (node instanceof osparc.data.model.Node) {
808-
node.getStatus().getLockState().bind("locked", this.__serviceOptionsPage, "enabled", {
809-
converter: nodeLocked => !nodeLocked
808+
// OM replace this with node.getStatus().getLockState()?
809+
node.getStudy().bind("pipelineRunning", this.__serviceOptionsPage, "enabled", {
810+
converter: pipelineRunning => !pipelineRunning
810811
});
811812
}
812813
},

services/static-webserver/client/source/class/osparc/node/slideshow/NodeView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ qx.Class.define("osparc.node.slideshow.NodeView", {
6161
const showSettings = node.isComputational();
6262
this._settingsLayout.setVisibility(showSettings ? "visible" : "excluded");
6363

64-
node.getStatus().getLockState().bind("locked", this._settingsLayout, "enabled", {
65-
converter: nodeLocked => !nodeLocked
64+
// OM replace this with node.getStatus().getLockState()?
65+
node.getStudy().bind("pipelineRunning", this._settingsLayout, "enabled", {
66+
converter: pipelineRunning => !pipelineRunning
6667
});
6768

6869
this._mainView.add(this._settingsLayout);

0 commit comments

Comments
 (0)