Fix modal bug on save

This commit is contained in:
Ramon Wenger 2018-09-07 11:14:41 +02:00
parent a7368541a3
commit 186eab6253
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ export default new Vuex.Store({
document.body.classList.add('no-scroll'); // won't get at the body any other way
commit('setModal', true);
},
saveContentBlock({commit}, payload) {
saveContentBlock({commit, dispatch}, payload) {
commit('setNewContentBlock', payload);
commit('setModal', false);
dispatch('hideModal');
}
},