diff options
Diffstat (limited to 'app/assets/javascripts/notes/components/comment_form.vue')
-rw-r--r-- | app/assets/javascripts/notes/components/comment_form.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/comment_form.vue b/app/assets/javascripts/notes/components/comment_form.vue index 87b55b19c08..17eded3bec0 100644 --- a/app/assets/javascripts/notes/components/comment_form.vue +++ b/app/assets/javascripts/notes/components/comment_form.vue @@ -12,6 +12,7 @@ import { slugifyWithUnderscore, } from '~/lib/utils/text_utility'; import { sprintf } from '~/locale'; +import { InternalEvents } from '~/tracking'; import { badgeState } from '~/merge_requests/components/merge_request_header.vue'; import MarkdownEditor from '~/vue_shared/components/markdown/markdown_editor.vue'; import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue'; @@ -48,7 +49,7 @@ export default { directives: { GlTooltip: GlTooltipDirective, }, - mixins: [issuableStateMixin], + mixins: [issuableStateMixin, InternalEvents.mixin()], props: { noteableType: { type: String, @@ -253,6 +254,10 @@ export default { this.isSubmitting = true; + if (isDraft) { + eventHub.$emit('noteFormAddToReview', { name: 'noteFormAddToReview' }); + } + trackSavedUsingEditor( this.$refs.markdownEditor.isContentEditorActive, `${this.noteableType}_${this.noteType}`, |