Skip to content

Commit

Permalink
Fix #783
Browse files Browse the repository at this point in the history
"Resume (Debugging)" action should only be visible on 'Pausable'
nodes.
  • Loading branch information
kdvolder committed Jun 23, 2022
1 parent 0760472 commit b80fc5d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ protected boolean currentStateAcceptable(RunState s) {
return s == RunState.PAUSED;
}

@Override
protected boolean isVisibleForElement(BootDashElement e) {
// Only show Resume action for elements that can be paused explicitly
return e.supportedGoalStates().contains(RunState.PAUSED) && super.isVisibleForElement(e);
}

@Override
public boolean showInToolbar() {
return false;
Expand Down

0 comments on commit b80fc5d

Please sign in to comment.