"Resume (Debugging)" action should only be visible on 'Pausable'
nodes.
This commit is contained in:
Kris De Volder
2022-06-23 13:39:11 -07:00
parent 0760472d19
commit b80fc5d8ba

View File

@@ -256,6 +256,12 @@ public class BootDashActions {
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;