Open source personal finance application
Fix tab selection for trns from localStorage
ilkomee63b25263fb9
diff --git a/src/components/ui/store/actions.js b/src/components/ui/store/actions.jsindex 24bcc5a1..276bfa07 100644--- a/src/components/ui/store/actions.js+++ b/src/components/ui/store/actions.js@@ -8,7 +8,7 @@ export default {async initUi ({ commit, dispatch }) {const uiLocalStore = await localforage.getItem('uiLocalStore')- // stat chats+ // stat periods graphconst statGraphsVisible = await localforage.getItem('next.statGraphsVisible')if (statGraphsVisible === 'visible') commit('showStatGraphs')if (statGraphsVisible === 'hidden') commit('hideStatGraphs')@@ -23,13 +23,20 @@ export default {if (catsChart === 'visible') commit('setVisibleCatsChart', 'visible')if (catsChart === 'hidden') commit('setVisibleCatsChart', 'hidden')+ // uiif (uiLocalStore) {if (uiLocalStore.statItems) commit('setVisibilityStatItems', uiLocalStore.statItems)+ // statif (uiLocalStore.stat) {+ // walletsuiLocalStore.stat.walletsVisibility === 'visible'? commit('setStatWalletsVisibility', 'visible'): commit('setStatWalletsVisibility', 'hidden')++ // stat tab+ uiLocalStore.stat.activeTab &&+ dispatch('setActiveTabStat', uiLocalStore.stat.activeTab)}}},