Commit 4ca36f6f authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'note-body-ee-differences-ee' into 'master'

Fixed EE differences in note_body.vue

See merge request gitlab-org/gitlab-ee!10644
parents cd37fa77 a0556b6b
<script>
import { mapGetters, mapActions } from 'vuex';
import { mapActions } from 'vuex';
import $ from 'jquery';
import getDiscussion from 'ee_else_ce/notes/mixins/get_discussion';
import noteEditedText from './note_edited_text.vue';
import noteAwardsList from './note_awards_list.vue';
import noteAttachment from './note_attachment.vue';
......@@ -16,7 +17,7 @@ export default {
noteForm,
Suggestions,
},
mixins: [autosave],
mixins: [autosave, getDiscussion],
props: {
note: {
type: Object,
......@@ -43,7 +44,6 @@ export default {
},
},
computed: {
...mapGetters(['getDiscussion']),
noteBody() {
return this.note.note;
},
......@@ -53,11 +53,6 @@ export default {
lineType() {
return this.line ? this.line.type : null;
},
discussion() {
if (!this.note.isDraft) return {};
return this.getDiscussion(this.note.discussion_id);
},
},
mounted() {
this.renderGFM();
......
export default {
computed: {
discussion() {
return {};
},
},
};
import { mapGetters } from 'vuex';
export default {
computed: {
...mapGetters(['getDiscussion']),
discussion() {
if (!this.note.isDraft) return {};
return this.getDiscussion(this.note.discussion_id);
},
},
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment