Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-14 18:07:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-14 18:07:17 +0300
commit2aea9a0c91723b8800b016335930c59390cda7c9 (patch)
treef223b5ef5cf7ee847cfc4875b3c02ec265f91c2d /app/assets/javascripts/batch_comments
parent14a0edee5c04b04b5281f99ce7f6ba75b919dba1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/batch_comments')
-rw-r--r--app/assets/javascripts/batch_comments/components/submit_dropdown.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/batch_comments/components/submit_dropdown.vue b/app/assets/javascripts/batch_comments/components/submit_dropdown.vue
index 2721851f03b..96889f0059c 100644
--- a/app/assets/javascripts/batch_comments/components/submit_dropdown.vue
+++ b/app/assets/javascripts/batch_comments/components/submit_dropdown.vue
@@ -8,6 +8,7 @@ import { scrollToElement } from '~/lib/utils/common_utils';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import { CLEAR_AUTOSAVE_ENTRY_EVENT } from '~/vue_shared/constants';
import markdownEditorEventHub from '~/vue_shared/components/markdown/eventhub';
+import { trackSavedUsingEditor } from '~/vue_shared/components/markdown/tracking';
export default {
components: {
@@ -80,6 +81,8 @@ export default {
async submitReview() {
this.isSubmitting = true;
+ trackSavedUsingEditor(this.$refs.markdownEditor.isContentEditorActive, 'MergeRequest_review');
+
try {
await this.publishReview(this.noteData);
@@ -131,6 +134,7 @@ export default {
</template>
<div class="common-note-form gfm-form">
<markdown-editor
+ ref="markdownEditor"
v-model="noteData.note"
:enable-content-editor="Boolean(glFeatures.contentEditorOnIssues)"
class="js-no-autosize"