Commit a0556b6b authored by Phil Hughes's avatar Phil Hughes

Fixed EE differences in note_body.vue

parent f4c80603
<script> <script>
import { mapGetters, mapActions } from 'vuex'; import { mapActions } from 'vuex';
import $ from 'jquery'; import $ from 'jquery';
import getDiscussion from 'ee_else_ce/notes/mixins/get_discussion';
import noteEditedText from './note_edited_text.vue'; import noteEditedText from './note_edited_text.vue';
import noteAwardsList from './note_awards_list.vue'; import noteAwardsList from './note_awards_list.vue';
import noteAttachment from './note_attachment.vue'; import noteAttachment from './note_attachment.vue';
...@@ -16,7 +17,7 @@ export default { ...@@ -16,7 +17,7 @@ export default {
noteForm, noteForm,
Suggestions, Suggestions,
}, },
mixins: [autosave], mixins: [autosave, getDiscussion],
props: { props: {
note: { note: {
type: Object, type: Object,
...@@ -43,7 +44,6 @@ export default { ...@@ -43,7 +44,6 @@ export default {
}, },
}, },
computed: { computed: {
...mapGetters(['getDiscussion']),
noteBody() { noteBody() {
return this.note.note; return this.note.note;
}, },
...@@ -53,11 +53,6 @@ export default { ...@@ -53,11 +53,6 @@ export default {
lineType() { lineType() {
return this.line ? this.line.type : null; return this.line ? this.line.type : null;
}, },
discussion() {
if (!this.note.isDraft) return {};
return this.getDiscussion(this.note.discussion_id);
},
}, },
mounted() { mounted() {
this.renderGFM(); 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