π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:zap: Updates key names
Alicia Sykes229e67aca8a4
diff --git a/src/components/InteractiveEditor/EditAppConfig.vue b/src/components/InteractiveEditor/EditAppConfig.vueindex f4c97ea9..56779b4c 100644--- a/src/components/InteractiveEditor/EditAppConfig.vue+++ b/src/components/InteractiveEditor/EditAppConfig.vue@@ -71,7 +71,7 @@ export default {/* When form submitteed, update VueX store with new appConfig, and close modal */saveToState() {const processedFormData = this.removeUndefinedValues(this.formData);- this.$store.commit(StoreKeys.UPDATE_APP_CONFIG, processedFormData);+ this.$store.commit(StoreKeys.SET_APP_CONFIG, processedFormData);this.$modal.hide(this.modalName);this.$store.commit(StoreKeys.SET_MODAL_OPEN, false);this.$store.commit(StoreKeys.SET_EDIT_MODE, true);diff --git a/src/components/InteractiveEditor/EditPageInfo.vue b/src/components/InteractiveEditor/EditPageInfo.vueindex 290381fc..71f978da 100644--- a/src/components/InteractiveEditor/EditPageInfo.vue+++ b/src/components/InteractiveEditor/EditPageInfo.vue@@ -55,7 +55,7 @@ export default {methods: {/* When form submitteed, update VueX store with new pageInfo, and close modal */saveToState() {- this.$store.commit(StoreKeys.UPDATE_PAGE_INFO, this.formData);+ this.$store.commit(StoreKeys.SET_PAGE_INFO, this.formData);this.$modal.hide(this.modalName);this.$store.commit(StoreKeys.SET_MODAL_OPEN, false);this.$store.commit(StoreKeys.SET_EDIT_MODE, true);diff --git a/src/utils/StoreMutations.js b/src/utils/StoreMutations.jsindex e32a2bd6..ebe55f4f 100644--- a/src/utils/StoreMutations.js+++ b/src/utils/StoreMutations.js@@ -1,20 +1,24 @@// A list of mutation namesconst KEY_NAMES = ['INITIALIZE_CONFIG',- 'UPDATE_CONFIG',+ 'SET_CONFIG','SET_MODAL_OPEN','SET_LANGUAGE','SET_EDIT_MODE','SET_ITEM_LAYOUT','SET_ITEM_SIZE',+ 'SET_THEME','UPDATE_ITEM',- 'UPDATE_PAGE_INFO',- 'UPDATE_APP_CONFIG',+ 'SET_PAGE_INFO',+ 'SET_APP_CONFIG',+ 'SET_SECTIONS','UPDATE_SECTION',+ 'INSERT_SECTION','REMOVE_SECTION','COPY_ITEM','REMOVE_ITEM','INSERT_ITEM',+ 'UPDATE_CUSTOM_CSS',];// Convert array of key names into an object, and export