diff options
Diffstat (limited to 'app/assets/javascripts/notes/components/discussion_notes.vue')
-rw-r--r-- | app/assets/javascripts/notes/components/discussion_notes.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes/components/discussion_notes.vue b/app/assets/javascripts/notes/components/discussion_notes.vue index 2dbc9b10836..3e8cddc3174 100644 --- a/app/assets/javascripts/notes/components/discussion_notes.vue +++ b/app/assets/javascripts/notes/components/discussion_notes.vue @@ -52,6 +52,11 @@ export default { required: false, default: false, }, + shouldScrollToNote: { + type: Boolean, + required: false, + default: true, + }, }, computed: { ...mapGetters(['userCanReply']), @@ -133,6 +138,7 @@ export default { :discussion-root="true" :discussion-resolve-path="discussion.resolve_path" :is-overview-tab="isOverviewTab" + :should-scroll-to-note="shouldScrollToNote" @handleDeleteNote="$emit('deleteNote')" @startReplying="$emit('startReplying')" > @@ -183,6 +189,7 @@ export default { :discussion-root="index === 0" :discussion-resolve-path="discussion.resolve_path" :is-overview-tab="isOverviewTab" + :should-scroll-to-note="shouldScrollToNote" @handleDeleteNote="$emit('deleteNote')" > <template #avatar-badge> |