Allow plugins to check if user is signed in
Change-Id: Ieb724bef5c30fcfdc676dda4d9562b4901257ddd Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -54,6 +54,10 @@ public final class Plugin extends JavaScriptObject {
|
||||
public final native void refreshMenuBar()
|
||||
/*-{ return this.refreshMenuBar() }-*/;
|
||||
|
||||
/** Check if user is signed in. */
|
||||
public final native boolean isSignedIn()
|
||||
/*-{ return this.isSignedIn() }-*/;
|
||||
|
||||
/** Show message in Gerrit's ErrorDialog. */
|
||||
public final native void showError(String message)
|
||||
/*-{ return this.showError(message) }-*/;
|
||||
|
Reference in New Issue
Block a user