Display project's maxObjectSizeLimit in the UI
Change-Id: I7ee071c4117b277a93e9bf40de1ecbd2cd0e6205
This commit is contained in:
@@ -42,6 +42,7 @@ public interface AdminConstants extends Constants {
|
|||||||
String useContributorAgreements();
|
String useContributorAgreements();
|
||||||
String useSignedOffBy();
|
String useSignedOffBy();
|
||||||
String requireChangeID();
|
String requireChangeID();
|
||||||
|
String headingMaxObjectSizeLimit();
|
||||||
String headingGroupOptions();
|
String headingGroupOptions();
|
||||||
String isVisibleToAll();
|
String isVisibleToAll();
|
||||||
String buttonSaveGroupOptions();
|
String buttonSaveGroupOptions();
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ useContentMerge = Automatically resolve conflicts
|
|||||||
useContributorAgreements = Require a valid contributor agreement to upload
|
useContributorAgreements = Require a valid contributor agreement to upload
|
||||||
useSignedOffBy = Require <a href="http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/user-signedoffby.html#Signed-off-by" target="_blank"><code>Signed-off-by</code></a> in commit message
|
useSignedOffBy = Require <a href="http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/user-signedoffby.html#Signed-off-by" target="_blank"><code>Signed-off-by</code></a> in commit message
|
||||||
requireChangeID = Require <a href="http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/user-changeid.html" target="_blank"><code>Change-Id</code></a> in commit message
|
requireChangeID = Require <a href="http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/user-changeid.html" target="_blank"><code>Change-Id</code></a> in commit message
|
||||||
|
headingMaxObjectSizeLimit = Maximum Git object size limit
|
||||||
headingGroupOptions = Group Options
|
headingGroupOptions = Group Options
|
||||||
isVisibleToAll = Make group visible to all registered users.
|
isVisibleToAll = Make group visible to all registered users.
|
||||||
buttonSaveGroupOptions = Save Group Options
|
buttonSaveGroupOptions = Save Group Options
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ import com.google.gwt.event.dom.client.ClickEvent;
|
|||||||
import com.google.gwt.event.dom.client.ClickHandler;
|
import com.google.gwt.event.dom.client.ClickHandler;
|
||||||
import com.google.gwt.user.client.ui.Button;
|
import com.google.gwt.user.client.ui.Button;
|
||||||
import com.google.gwt.user.client.ui.FlexTable;
|
import com.google.gwt.user.client.ui.FlexTable;
|
||||||
|
import com.google.gwt.user.client.ui.Label;
|
||||||
import com.google.gwt.user.client.ui.ListBox;
|
import com.google.gwt.user.client.ui.ListBox;
|
||||||
import com.google.gwt.user.client.ui.VerticalPanel;
|
import com.google.gwt.user.client.ui.VerticalPanel;
|
||||||
import com.google.gwt.user.client.ui.Widget;
|
import com.google.gwt.user.client.ui.Widget;
|
||||||
@@ -48,6 +49,7 @@ public class ProjectInfoScreen extends ProjectScreen {
|
|||||||
private ListBox submitType;
|
private ListBox submitType;
|
||||||
private ListBox state;
|
private ListBox state;
|
||||||
private ListBox contentMerge;
|
private ListBox contentMerge;
|
||||||
|
private Label maxObjectSizeLimit;
|
||||||
|
|
||||||
// Section: Contributor Agreements
|
// Section: Contributor Agreements
|
||||||
private ListBox contributorAgreements;
|
private ListBox contributorAgreements;
|
||||||
@@ -160,6 +162,9 @@ public class ProjectInfoScreen extends ProjectScreen {
|
|||||||
requireChangeID = newInheritedBooleanBox();
|
requireChangeID = newInheritedBooleanBox();
|
||||||
saveEnabler.listenTo(requireChangeID);
|
saveEnabler.listenTo(requireChangeID);
|
||||||
grid.addHtml(Util.C.requireChangeID(), requireChangeID);
|
grid.addHtml(Util.C.requireChangeID(), requireChangeID);
|
||||||
|
|
||||||
|
maxObjectSizeLimit = new Label();
|
||||||
|
grid.addHtml(Util.C.headingMaxObjectSizeLimit(), maxObjectSizeLimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ListBox newInheritedBooleanBox() {
|
private static ListBox newInheritedBooleanBox() {
|
||||||
@@ -277,6 +282,7 @@ public class ProjectInfoScreen extends ProjectScreen {
|
|||||||
setBool(requireChangeID, result.requireChangeID);
|
setBool(requireChangeID, result.requireChangeID);
|
||||||
setSubmitType(project.getSubmitType());
|
setSubmitType(project.getSubmitType());
|
||||||
setState(project.getState());
|
setState(project.getState());
|
||||||
|
maxObjectSizeLimit.setText(project.getMaxObjectSizeLimit());
|
||||||
|
|
||||||
saveProject.setEnabled(false);
|
saveProject.setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user