summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/batch_comments/components/draft_note.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/batch_comments/components/draft_note.vue')
-rw-r--r--app/assets/javascripts/batch_comments/components/draft_note.vue11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/assets/javascripts/batch_comments/components/draft_note.vue b/app/assets/javascripts/batch_comments/components/draft_note.vue
index 74069b61f07..e6de724512f 100644
--- a/app/assets/javascripts/batch_comments/components/draft_note.vue
+++ b/app/assets/javascripts/batch_comments/components/draft_note.vue
@@ -1,10 +1,9 @@
<script>
/* eslint-disable vue/no-v-html */
-import { mapActions, mapGetters, mapState } from 'vuex';
import { GlButton } from '@gitlab/ui';
+import { mapActions, mapGetters, mapState } from 'vuex';
import NoteableNote from '~/notes/components/noteable_note.vue';
import PublishButton from './publish_button.vue';
-import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
components: {
@@ -12,7 +11,6 @@ export default {
PublishButton,
GlButton,
},
- mixins: [glFeatureFlagsMixin()],
props: {
draft: {
type: Object,
@@ -63,14 +61,14 @@ export default {
this.isEditingDraft = false;
},
handleMouseEnter(draft) {
- if (this.glFeatures.multilineComments && draft.position) {
+ if (draft.position) {
this.setSelectedCommentPositionHover(draft.position.line_range);
}
},
handleMouseLeave(draft) {
- // Even though position isn't used here we still don't want to unecessarily call a mutation
+ // Even though position isn't used here we still don't want to unnecessarily call a mutation
// The lack of position tells us that highlighting is irrelevant in this context
- if (this.glFeatures.multilineComments && draft.position) {
+ if (draft.position) {
this.setSelectedCommentPositionHover();
}
},
@@ -79,7 +77,6 @@ export default {
</script>
<template>
<article
- role="article"
class="draft-note-component note-wrapper"
@mouseenter="handleMouseEnter(draft)"
@mouseleave="handleMouseLeave(draft)"