Adds ability to edit pageInfo through the UI

This commit is contained in:
Alicia Sykes
2021-10-23 13:07:30 +01:00
parent a48024e59c
commit 8147f40e9c
10 changed files with 214 additions and 9 deletions

View File

@@ -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 */