diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-02-18 09:43:13 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-18 09:43:13 +0000 |
commit | 8441fc479904a830ae7573003488cdc2ab5e585a (patch) | |
tree | d71539ccf7aa99663546cd82eeebc7584e21de88 /app/assets/javascripts/notes/components/noteable_note.vue | |
parent | e52f97a9ad2e5eea4ea90d38748d9ea14db5a2fe (diff) | |
download | gitlab-ce-8441fc479904a830ae7573003488cdc2ab5e585a.tar.gz |
Remove noteId prop from ReplyButton component
Move convertToDiscussion call from ReplyButton to NoteApp component
Diffstat (limited to 'app/assets/javascripts/notes/components/noteable_note.vue')
-rw-r--r-- | app/assets/javascripts/notes/components/noteable_note.vue | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/app/assets/javascripts/notes/components/noteable_note.vue b/app/assets/javascripts/notes/components/noteable_note.vue index 56108a58010..04e74a43acc 100644 --- a/app/assets/javascripts/notes/components/noteable_note.vue +++ b/app/assets/javascripts/notes/components/noteable_note.vue @@ -29,11 +29,6 @@ export default { type: Object, required: true, }, - discussion: { - type: Object, - required: false, - default: null, - }, line: { type: Object, required: false, @@ -49,6 +44,11 @@ export default { required: false, default: () => null, }, + showReplyButton: { + type: Boolean, + required: false, + default: false, + }, }, data() { return { @@ -91,13 +91,6 @@ export default { } return ''; }, - showReplyButton() { - if (!this.discussion || !this.getNoteableData.current_user.can_create_note) { - return false; - } - - return this.discussion.individual_note && !this.commentsDisabled; - }, actionText() { if (!this.commit) { return ''; @@ -260,10 +253,10 @@ export default { :is-resolved="note.resolved" :is-resolving="isResolving" :resolved-by="note.resolved_by" - :discussion-id="discussionId" @handleEdit="editHandler" @handleDelete="deleteHandler" @handleResolve="resolveHandler" + @startReplying="$emit('startReplying')" /> </div> <div class="timeline-discussion-body"> |