"add section" works

This commit is contained in:
Seth Ladygo
2019-05-17 16:04:35 -07:00
parent 7a23dcdf53
commit b9b91a9044
2 changed files with 24 additions and 3 deletions

View File

@ -284,6 +284,15 @@ export const store = new Vuex.Store({
// manipulation
//
newSection({ commit, getters }, name) {
let section = {
name: name,
id: getters.nextSectionID,
pages: [],
}
commit('addSection', section)
},
reorderSection({ commit }, payload) {
commit('reorderSection', payload)
},