summaryrefslogtreecommitdiffstats
path: root/gerrit-gwtui-common
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2018-06-10 16:36:42 +0200
committerDavid Pursehouse <dpursehouse@collab.net>2018-07-10 23:42:20 +0000
commit821c5321d25e941f4c4012386c7eaed17400474f (patch)
tree39a7b77211d391e7b0f13891a18bc78a72d23643 /gerrit-gwtui-common
parent9690994111a5068f297a79b94b54037ce5fdbf71 (diff)
Add account setting for defaulting new changes to WIP
Create change online dialog wasn't extended in this change to respect new added work-in-progress account setting to initialize the checkbox accordingly. In PolyGerrit UI the WIP Change checkbox is shown and could be set if needed, in GWT UI the work-in-progress flag is always set implicitly. Feature: Issue 8866 Change-Id: Ibf537436841b755c946a6c329100f94a22774f68
Diffstat (limited to 'gerrit-gwtui-common')
-rw-r--r--gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/GeneralPreferences.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/GeneralPreferences.java b/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/GeneralPreferences.java
index 1dcb284ed1..fbdf52cbfb 100644
--- a/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/GeneralPreferences.java
+++ b/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/info/GeneralPreferences.java
@@ -151,6 +151,9 @@ public class GeneralPreferences extends JavaScriptObject {
public final native boolean
publishCommentsOnPush() /*-{ return this.publish_comments_on_push || false }-*/;
+ public final native boolean
+ workInProgressByDefault() /*-{ return this.work_in_progress_by_default || false }-*/;
+
public final native JsArray<TopMenuItem> my() /*-{ return this.my; }-*/;
public final native void changesPerPage(int n) /*-{ this.changes_per_page = n }-*/;
@@ -230,6 +233,9 @@ public class GeneralPreferences extends JavaScriptObject {
public final native void publishCommentsOnPush(
boolean p) /*-{ this.publish_comments_on_push = p }-*/;
+ public final native void workInProgressByDefault(
+ boolean p) /*-{ this.work_in_progress_by_default = p }-*/;
+
public final void setMyMenus(List<TopMenuItem> myMenus) {
initMy();
for (TopMenuItem n : myMenus) {