✨ Adds ability to edit pageInfo through the UI
This commit is contained in:
@@ -15,6 +15,7 @@ const {
|
||||
SET_LANGUAGE,
|
||||
UPDATE_ITEM,
|
||||
SET_EDIT_MODE,
|
||||
UPDATE_PAGE_INFO,
|
||||
} = Keys;
|
||||
|
||||
const store = new Vuex.Store({
|
||||
@@ -77,6 +78,11 @@ const store = new Vuex.Store({
|
||||
});
|
||||
state.config = newConfig;
|
||||
},
|
||||
[UPDATE_PAGE_INFO](state, newPageInfo) {
|
||||
const newConfig = state.config;
|
||||
newConfig.pageInfo = newPageInfo;
|
||||
state.config = newConfig;
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
/* Called when app first loaded. Reads config and sets state */
|
||||
|
||||
Reference in New Issue
Block a user