update SectionInfoDialog to work again
This commit is contained in:
@ -11,7 +11,6 @@ export const store = new Vuex.Store({
|
||||
catalog: null,
|
||||
materials: {},
|
||||
selectedSectionID: null,
|
||||
//selectedFamilyID: null,
|
||||
selectedModelID: null,
|
||||
selectedMaterial: null,
|
||||
loadingCatalog: false,
|
||||
@ -190,6 +189,10 @@ export const store = new Vuex.Store({
|
||||
state.catalog.sections.push(section)
|
||||
},
|
||||
|
||||
setSectionName(state, { section, name }) {
|
||||
section.name = name
|
||||
},
|
||||
|
||||
reorderSection(state, { from, to }) {
|
||||
if (from === to) return
|
||||
state.catalog.sections = arrayMove(state.catalog.sections, from, to)
|
||||
@ -293,6 +296,10 @@ export const store = new Vuex.Store({
|
||||
commit('addSection', section)
|
||||
},
|
||||
|
||||
setSectionName({ commit }, payload) {
|
||||
commit('setSectionName', payload)
|
||||
},
|
||||
|
||||
reorderSection({ commit }, payload) {
|
||||
commit('reorderSection', payload)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user