Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ› Fixes layout and size buttons

Alicia Sykes5b2c0e970f9c
diff --git a/src/store.js b/src/store.js
index 76761ecc..1eda8650 100644
--- a/src/store.js
+++ b/src/store.js
@@ -292,11 +292,15 @@ const store = new Vuex.Store({
InfoHandler('Color palette updated', InfoKeys.VISUAL);
},
[SET_ITEM_LAYOUT](state, layout) {
- state.config.appConfig.layout = layout;
+ const newConfig = { ...state.config };
+ newConfig.appConfig.layout = layout;
+ state.config = newConfig;
InfoHandler('Layout updated', InfoKeys.VISUAL);
},
[SET_ITEM_SIZE](state, iconSize) {
- state.config.appConfig.iconSize = iconSize;
+ const newConfig = { ...state.config };
+ newConfig.appConfig.iconSize = iconSize;
+ state.config = newConfig;
InfoHandler('Item size updated', InfoKeys.VISUAL);
},
[UPDATE_CUSTOM_CSS](state, customCss) {