QuickApprove: Publish drafts on all revisions

Bug: issue 1100
Change-Id: I7c5aeb44c273b1549c93270980e80444de18fc08
This commit is contained in:
Dave Borowitz 2015-05-05 09:32:01 -07:00
parent 5ecc22535f
commit 5a5062f78e

View File

@ -19,6 +19,7 @@ import com.google.gerrit.client.changes.ChangeApi;
import com.google.gerrit.client.changes.ChangeInfo; import com.google.gerrit.client.changes.ChangeInfo;
import com.google.gerrit.client.changes.ChangeInfo.LabelInfo; import com.google.gerrit.client.changes.ChangeInfo.LabelInfo;
import com.google.gerrit.client.changes.ReviewInput; import com.google.gerrit.client.changes.ReviewInput;
import com.google.gerrit.client.changes.ReviewInput.DraftHandling;
import com.google.gerrit.client.rpc.GerritCallback; import com.google.gerrit.client.rpc.GerritCallback;
import com.google.gerrit.client.rpc.Natives; import com.google.gerrit.client.rpc.Natives;
import com.google.gerrit.common.PageLinks; import com.google.gerrit.common.PageLinks;
@ -72,6 +73,7 @@ class QuickApprove extends Button implements ClickHandler {
changeId = info.legacy_id(); changeId = info.legacy_id();
revision = commit; revision = commit;
input = ReviewInput.create(); input = ReviewInput.create();
input.drafts(DraftHandling.PUBLISH_ALL_REVISIONS);
input.label(qName, qValue); input.label(qName, qValue);
replyAction = action; replyAction = action;
setText(qName + qValueStr); setText(qName + qValueStr);