Check for open changes on branch deletion
Check for open changes when deleting a branch in the Gerrit WebUI. Delete a branch only if there are no open changes for this branch. The motivation for this change is to make the user aware of open changes when deleting a branch. Change-Id: Ifa5068dc5f93a48ced69b171465193ee35d5ab3b Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -25,6 +25,7 @@ import com.google.gwt.user.client.rpc.StatusCodeException;
|
||||
import com.google.gwt.user.client.ui.Button;
|
||||
import com.google.gwt.user.client.ui.FlowPanel;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
import com.google.gwtexpui.safehtml.client.SafeHtml;
|
||||
import com.google.gwtexpui.user.client.PluginSafePopupPanel;
|
||||
import com.google.gwtjsonrpc.client.RemoteJsonException;
|
||||
@@ -94,6 +95,11 @@ public class ErrorDialog extends PluginSafePopupPanel {
|
||||
body.add(message.toBlockWidget());
|
||||
}
|
||||
|
||||
public ErrorDialog(final Widget w) {
|
||||
this();
|
||||
body.add(w);
|
||||
}
|
||||
|
||||
/** Create a dialog box to nicely format an exception. */
|
||||
public ErrorDialog(final Throwable what) {
|
||||
this();
|
||||
|
Reference in New Issue
Block a user