diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-08 19:07:26 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-03-08 19:07:26 +0300 |
commit | 1466b7eecc56194e2967393dec559912df20e9bb (patch) | |
tree | 65aedcd3326e459d43c6eb6e1cd78271eccc2aed /app/assets/javascripts/diff_notes/components/resolve_btn.js | |
parent | d20a6033858c316e20d5c3574c91f12be66fae17 (diff) |
Added discussion comments avatars to diff
Diffstat (limited to 'app/assets/javascripts/diff_notes/components/resolve_btn.js')
-rw-r--r-- | app/assets/javascripts/diff_notes/components/resolve_btn.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/app/assets/javascripts/diff_notes/components/resolve_btn.js b/app/assets/javascripts/diff_notes/components/resolve_btn.js index d1873d6c7a2..fbd980f0fce 100644 --- a/app/assets/javascripts/diff_notes/components/resolve_btn.js +++ b/app/assets/javascripts/diff_notes/components/resolve_btn.js @@ -11,7 +11,10 @@ const Vue = require('vue'); discussionId: String, resolved: Boolean, canResolve: Boolean, - resolvedBy: String + resolvedBy: String, + authorName: String, + authorAvatar: String, + noteTruncated: String, }, data: function () { return { @@ -98,7 +101,16 @@ const Vue = require('vue'); CommentsStore.delete(this.discussionId, this.noteId); }, created: function () { - CommentsStore.create(this.discussionId, this.noteId, this.canResolve, this.resolved, this.resolvedBy); + CommentsStore.create({ + discussionId: this.discussionId, + noteId: this.noteId, + canResolve: this.canResolve, + resolved: this.resolved, + resolvedBy: this.resolvedBy, + authorName: this.authorName, + authorAvatar: this.authorAvatar, + noteTruncated: this.noteTruncated, + }); this.note = this.discussion.getNote(this.noteId); } |