Skip to content

Commit

Permalink
update button binding
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Jun 5, 2023
1 parent 8bbdd02 commit f7f2c86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ qx.Class.define("osparc.component.node.LifeCycleView", {
backgroundColor: "strong-main"
});
const isUpdatable = this.getNode().isUpdatable();
stopButton.bind("enabled", updateButton, "enabled", {
converter: enabled => !enabled && isUpdatable
node.getStatus().bind("interactive", updateButton, "enabled", {
converter: state => ["idle", "failed", "deprecated", "retired"].includes(state) && isUpdatable
});
updateButton.addListener("execute", () => {
updateButton.setFetching(true);
Expand Down

0 comments on commit f7f2c86

Please sign in to comment.