Allow plugins to display errors in the Gerrit ErrorDialog
Add a method to the JavaScript API to open the Gerrit ErrorDialog with a given message. Plugins don't want to reimplement the ErrorDialog. Change-Id: Iec18fb873bfbe9f47684414aacbaf697076d315f Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -50,6 +50,10 @@ public final class Plugin extends JavaScriptObject {
|
||||
public final native void refresh()
|
||||
/*-{ return this.refresh() }-*/;
|
||||
|
||||
/** Show message in Gerrit's ErrorDialog. */
|
||||
public final native void showError(String message)
|
||||
/*-{ return this.showError(message) }-*/;
|
||||
|
||||
/**
|
||||
* Register a screen displayed at {@code /#/x/plugin/token}.
|
||||
*
|
||||
|
Reference in New Issue
Block a user