diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-04-09 08:11:31 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-04-09 08:11:31 +0000 |
commit | 0bda6cc146eb59f3d554db8dea84477e99f95fe8 (patch) | |
tree | 3fffcc79aa3e4e600d58a78d5c5f6c03114763fc | |
parent | 8b8f79440d70a8a82e7a196a30a62aaf5bac695c (diff) | |
parent | 32cc246f63b7c63f82f32776af1d66d50ad42517 (diff) | |
download | gitlab-ce-0bda6cc146eb59f3d554db8dea84477e99f95fe8.tar.gz |
Merge branch 'note-body-ee-differences' into 'master'
Fixed EE differences in note_body.vue
Closes gitlab-ee#9968
See merge request gitlab-org/gitlab-ce!27126
-rw-r--r-- | app/assets/javascripts/notes/components/note_body.vue | 9 | ||||
-rw-r--r-- | app/assets/javascripts/notes/mixins/get_discussion.js | 7 |
2 files changed, 13 insertions, 3 deletions
diff --git a/app/assets/javascripts/notes/components/note_body.vue b/app/assets/javascripts/notes/components/note_body.vue index ff303d0f55a..fbf75ed0e41 100644 --- a/app/assets/javascripts/notes/components/note_body.vue +++ b/app/assets/javascripts/notes/components/note_body.vue @@ -1,6 +1,7 @@ <script> 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, @@ -76,8 +77,8 @@ export default { renderGFM() { $(this.$refs['note-body']).renderGFM(); }, - handleFormUpdate(note, parentElement, callback) { - this.$emit('handleFormUpdate', note, parentElement, callback); + handleFormUpdate(note, parentElement, callback, resolveDiscussion) { + this.$emit('handleFormUpdate', note, parentElement, callback, resolveDiscussion); }, formCancelHandler(shouldConfirm, isDirty) { this.$emit('cancelForm', shouldConfirm, isDirty); @@ -111,6 +112,8 @@ export default { :line="line" :note="note" :help-page-path="helpPagePath" + :discussion="discussion" + :resolve-discussion="note.resolve_discussion" @handleFormUpdate="handleFormUpdate" @cancelForm="formCancelHandler" /> diff --git a/app/assets/javascripts/notes/mixins/get_discussion.js b/app/assets/javascripts/notes/mixins/get_discussion.js new file mode 100644 index 00000000000..b5d820fe083 --- /dev/null +++ b/app/assets/javascripts/notes/mixins/get_discussion.js @@ -0,0 +1,7 @@ +export default { + computed: { + discussion() { + return {}; + }, + }, +}; |