Commit 91481002 authored by Filipa Lacerda's avatar Filipa Lacerda

[ci skip] Fix broken discussion reply

parent 60f6b596
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
this.isReplying = false; this.isReplying = false;
}, },
saveReply({ note }) { saveReply(note) {
const replyData = { const replyData = {
endpoint: this.newNotePath, endpoint: this.newNotePath,
flashContainer: this.$el, flashContainer: this.$el,
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
in_reply_to_discussion_id: this.note.reply_id, in_reply_to_discussion_id: this.note.reply_id,
target_type: 'issue', target_type: 'issue',
target_id: this.discussion.noteable_id, target_id: this.discussion.noteable_id,
note: { note }, note: { note: note },
full_data: true, full_data: true,
}, },
}; };
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
}, },
methods: { methods: {
handleUpdate() { handleUpdate() {
this.$emit('handleFormUpdate', note); this.$emit('handleFormUpdate', this.note);
}, },
editMyLastNote() { editMyLastNote() {
if (this.note === '') { if (this.note === '') {
......
...@@ -61,7 +61,8 @@ ...@@ -61,7 +61,8 @@
setNotesData: 'setNotesData', setNotesData: 'setNotesData',
setIssueData: 'setIssueData', setIssueData: 'setIssueData',
setUserData: 'setUserData', setUserData: 'setUserData',
setLastFetchedAt: 'setLastFetchedAt' setLastFetchedAt: 'setLastFetchedAt',
setTargetNoteHash: 'setTargetNoteHash',
}), }),
getComponentName(note) { getComponentName(note) {
if (note.isPlaceholderNote) { if (note.isPlaceholderNote) {
...@@ -84,7 +85,7 @@ ...@@ -84,7 +85,7 @@
this.isLoading = false; this.isLoading = false;
// Scroll to note if we have hash fragment in the page URL // Scroll to note if we have hash fragment in the page URL
Vue.nextTick(() => { this.$nextTick(() => {
this.checkLocationHash(); this.checkLocationHash();
}); });
}) })
......
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