summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-11-09 11:09:56 +0000
committerPhil Hughes <me@iamphill.com>2018-11-09 11:09:56 +0000
commita3fbde3512eaa5a685847ad722cfa3ab257c4edd (patch)
treee7e77b9c417873f9949a781641f07aae5392d126 /app/assets
parent5796221bc4de2a498777a4a0abf1c3d5a2d35891 (diff)
downloadgitlab-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.js1
-rw-r--r--app/assets/javascripts/notes/stores/actions.js1
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;
});