Add submittable support back to PolyGerrit

Submittable was made a ListChangesOption in
https://gerrit-review.googlesource.com/c/86911/

Bug: Issue 4709
Change-Id: I67bb0662df0a0d52f7c7e4ba30f49b79e8111a33
This commit is contained in:
Ravi Mistry 2016-10-05 14:19:12 -04:00
parent bcab137ba2
commit 6fca1a8f25
2 changed files with 16 additions and 3 deletions

View File

@ -81,7 +81,13 @@ limitations under the License.
COMMIT_FOOTERS: 17,
// Include push certificate information along with any patch sets.
PUSH_CERTIFICATES: 18
PUSH_CERTIFICATES: 18,
// Include change's reviewer updates.
REVIEWER_UPDATES: 19,
// Set the submittable boolean.
SUBMITTABLE: 20
},
listChangesOptionsToHex: function() {

View File

@ -62,7 +62,13 @@
COMMIT_FOOTERS: 17,
// Include push certificate information along with any patch sets.
PUSH_CERTIFICATES: 18
PUSH_CERTIFICATES: 18,
// Include change's reviewer updates.
REVIEWER_UPDATES: 19,
// Set the submittable boolean.
SUBMITTABLE: 20
};
Polymer({
@ -352,7 +358,8 @@
var options = this._listChangesOptionsToHex(
ListChangesOption.ALL_REVISIONS,
ListChangesOption.CHANGE_ACTIONS,
ListChangesOption.DOWNLOAD_COMMANDS
ListChangesOption.DOWNLOAD_COMMANDS,
ListChangesOption.SUBMITTABLE
);
return this._getChangeDetail(changeNum, options, opt_errFn,
opt_cancelCondition);