diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Actions.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Actions.java index bee2f539e7..f5fa6dd3c1 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Actions.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Actions.java @@ -120,6 +120,7 @@ class Actions extends Composite { if (canSubmit) { ActionInfo action = actions.get("submit"); submit.setTitle(action.title()); + submit.setEnabled(action.enabled()); submit.setHTML(new SafeHtmlBuilder() .openDiv() .append(action.label()) @@ -201,7 +202,9 @@ class Actions extends Composite { private static void a2b(NativeMap actions, String a, Button b) { if (actions.containsKey(a)) { b.setVisible(true); - b.setTitle(actions.get(a).title()); + ActionInfo actionInfo = actions.get(a); + b.setTitle(actionInfo.title()); + b.setEnabled(actionInfo.enabled()); } } }