Reenable revert button when revert is cancelled
Bug: issue 3337 Change-Id: I70b327e30bfca8efe81b2581cd619291ed2b5724 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
parent
8cec0c2299
commit
90b066fadc
@ -22,10 +22,12 @@ import com.google.gerrit.client.rpc.GerritCallback;
|
|||||||
import com.google.gerrit.client.ui.TextAreaActionDialog;
|
import com.google.gerrit.client.ui.TextAreaActionDialog;
|
||||||
import com.google.gerrit.common.PageLinks;
|
import com.google.gerrit.common.PageLinks;
|
||||||
import com.google.gerrit.reviewdb.client.Change;
|
import com.google.gerrit.reviewdb.client.Change;
|
||||||
|
import com.google.gwt.event.logical.shared.CloseEvent;
|
||||||
import com.google.gwt.user.client.ui.Button;
|
import com.google.gwt.user.client.ui.Button;
|
||||||
|
import com.google.gwt.user.client.ui.PopupPanel;
|
||||||
|
|
||||||
class RevertAction {
|
class RevertAction {
|
||||||
static void call(Button b, final Change.Id id, final String revision,
|
static void call(final Button b, final Change.Id id, final String revision,
|
||||||
final String commitSubject) {
|
final String commitSubject) {
|
||||||
// TODO Replace ActionDialog with a nicer looking display.
|
// TODO Replace ActionDialog with a nicer looking display.
|
||||||
b.setEnabled(false);
|
b.setEnabled(false);
|
||||||
@ -56,6 +58,12 @@ class RevertAction {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onClose(CloseEvent<PopupPanel> event) {
|
||||||
|
super.onClose(event);
|
||||||
|
b.setEnabled(true);
|
||||||
|
}
|
||||||
}.center();
|
}.center();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user