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
@@ -40,14 +40,17 @@ import java.util.Set;
|
||||
|
||||
class History extends FlowPanel {
|
||||
private CommentLinkProcessor clp;
|
||||
private ReplyAction replyAction;
|
||||
private Change.Id changeId;
|
||||
|
||||
private final Set<Integer> loaded = new HashSet<Integer>();
|
||||
private final Map<AuthorRevision, List<CommentInfo>> byAuthor =
|
||||
new HashMap<AuthorRevision, List<CommentInfo>>();
|
||||
|
||||
void set(CommentLinkProcessor clp, Change.Id id, ChangeInfo info) {
|
||||
void set(CommentLinkProcessor clp, ReplyAction ra,
|
||||
Change.Id id, ChangeInfo info) {
|
||||
this.clp = clp;
|
||||
this.replyAction = ra;
|
||||
this.changeId = id;
|
||||
|
||||
JsArray<MessageInfo> messages = info.messages();
|
||||
@@ -70,6 +73,10 @@ class History extends FlowPanel {
|
||||
return changeId;
|
||||
}
|
||||
|
||||
void replyTo(MessageInfo info) {
|
||||
replyAction.onReply(info);
|
||||
}
|
||||
|
||||
void addComments(int id, NativeMap<JsArray<CommentInfo>> map) {
|
||||
loaded.add(id);
|
||||
|
||||
|
Reference in New Issue
Block a user