Add reply button to each cover message comment
Reply button in cover message comment would allow to reply onto a specific comment. When pressed a new cover message comment would be created with the master cover message copied and '>' prefixes inserted. Feature: issue 592 Change-Id: I7ae221d8de09f2b643e3564ffddb03a9a2ceadf6
This commit is contained in:
committed by
Shawn Pearce
parent
08c3cd446d
commit
57d0f41ef9
@@ -16,6 +16,7 @@ package com.google.gerrit.client.change;
|
||||
|
||||
import com.google.gerrit.client.changes.ChangeInfo;
|
||||
import com.google.gerrit.client.changes.ChangeInfo.LabelInfo;
|
||||
import com.google.gerrit.client.changes.ChangeInfo.MessageInfo;
|
||||
import com.google.gerrit.client.rpc.NativeMap;
|
||||
import com.google.gerrit.reviewdb.client.PatchSet;
|
||||
import com.google.gwt.core.client.JsArrayString;
|
||||
@@ -57,7 +58,7 @@ class ReplyAction {
|
||||
: NativeMap.<JsArrayString> create();
|
||||
}
|
||||
|
||||
void onReply() {
|
||||
void onReply(MessageInfo msg) {
|
||||
if (popup != null) {
|
||||
popup.hide();
|
||||
return;
|
||||
@@ -72,6 +73,9 @@ class ReplyAction {
|
||||
allLabels = null;
|
||||
permittedLabels = null;
|
||||
}
|
||||
if (msg != null) {
|
||||
replyBox.replyTo(msg);
|
||||
}
|
||||
|
||||
final PluginSafePopupPanel p = new PluginSafePopupPanel(true);
|
||||
p.setStyleName(style.replyBox());
|
||||
|
||||
Reference in New Issue
Block a user