"add section" works
This commit is contained in:
@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user