diff options
author | Phil Hughes <me@iamphill.com> | 2018-11-09 11:09:56 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-11-09 11:09:56 +0000 |
commit | a3fbde3512eaa5a685847ad722cfa3ab257c4edd (patch) | |
tree | e7e77b9c417873f9949a781641f07aae5392d126 /app/assets | |
parent | 5796221bc4de2a498777a4a0abf1c3d5a2d35891 (diff) | |
download | gitlab-ce-a3fbde3512eaa5a685847ad722cfa3ab257c4edd.tar.gz |
Init task list when creating new note & discussion
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/diffs/store/actions.js | 1 | ||||
-rw-r--r-- | app/assets/javascripts/notes/stores/actions.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/diffs/store/actions.js b/app/assets/javascripts/diffs/store/actions.js index d3e9c7c88f0..41256fdd27a 100644 --- a/app/assets/javascripts/diffs/store/actions.js +++ b/app/assets/javascripts/diffs/store/actions.js @@ -190,6 +190,7 @@ export const saveDiffDiscussion = ({ dispatch }, { note, formData }) => { .then(result => dispatch('updateDiscussion', result.discussion, { root: true })) .then(discussion => dispatch('assignDiscussionsToDiff', [discussion])) .then(() => dispatch('closeDiffFileCommentForm', formData.diffFile.fileHash)) + .then(() => dispatch('startTaskList', null, { root: true })) .catch(() => createFlash(s__('MergeRequests|Saving the comment failed'))); }; diff --git a/app/assets/javascripts/notes/stores/actions.js b/app/assets/javascripts/notes/stores/actions.js index 2f952bf819d..9ecb2bc8f52 100644 --- a/app/assets/javascripts/notes/stores/actions.js +++ b/app/assets/javascripts/notes/stores/actions.js @@ -88,6 +88,7 @@ export const createNewNote = ({ commit, dispatch }, { endpoint, data }) => commit(types.ADD_NEW_NOTE, res); dispatch('updateMergeRequestWidget'); + dispatch('startTaskList'); } return res; }); |