Open source personal finance application
Remove show last trns on stat mobile
Ilya Komichev7d138de4e1be
diff --git a/src/components/stat/StatMobile.vue b/src/components/stat/StatMobile.vueindex f6ab3f2b..481dfe25 100644--- a/src/components/stat/StatMobile.vue+++ b/src/components/stat/StatMobile.vue@@ -111,13 +111,10 @@ export default {//- stat//------------------------------------------------div(v-show="activeTabStat === 'stat'")- .stat__lastTrns(v-if="$store.state.ui.lastTrns === 'visible'")- TrnsListViewEasy-.stat__content//- incomes.statGroup(v-if="stat.incomes.categoriesIds.length")- .statItem-header(@click="$store.dispatch('tooglevisibleLastTrns')")+ .statItem-header.statItem-total.statItem-total__title._incomes Incomes.statItem-total__amount@@ -152,7 +149,7 @@ export default {//- expenses.statGroup(v-if="stat.expenses.categoriesIds.length")- .statItem-header(@click="$store.dispatch('tooglevisibleLastTrns')")+ .statItem-header.statItem-total.statItem-total__title._expenses Expenses.statItem-total__amount@@ -208,12 +205,6 @@ export default {:checkValue="$store.state.ui.statGraphsVisible"v-on:onClick="$store.dispatch('toogleShowStatGraphs')"v-on:onClose="visibleCustomizeMenu = !visibleCustomizeMenu")- ContextMenuItem(- icon="mdi mdi-history"- title="Last trns"- :checkValue="$store.state.ui.lastTrns === 'visible'"- v-on:onClick="$store.dispatch('tooglevisibleLastTrns')"- v-on:onClose="visibleCustomizeMenu = !visibleCustomizeMenu")ContextMenuItem(icon="mdi mdi-chart-bubble"title="Cats chart"diff --git a/src/components/ui/store/actions.js b/src/components/ui/store/actions.jsindex 765da2b6..24bcc5a1 100644--- a/src/components/ui/store/actions.js+++ b/src/components/ui/store/actions.js@@ -26,10 +26,6 @@ export default {if (uiLocalStore) {if (uiLocalStore.statItems) commit('setVisibilityStatItems', uiLocalStore.statItems)- uiLocalStore.lastTrns === 'visible'- ? commit('setVisibleLastTrns', 'visible')- : commit('setVisibleLastTrns', 'hidden')-if (uiLocalStore.stat) {uiLocalStore.stat.walletsVisibility === 'visible'? commit('setStatWalletsVisibility', 'visible')@@ -129,17 +125,6 @@ export default {commit('setLastUsedCatsInTrnForm', nextStatus)},- // visible last trns in mobile stat- tooglevisibleLastTrns ({ commit, state }) {- let nextStatus- state.lastTrns === 'visible'- ? nextStatus = 'hidden'- : nextStatus = 'visible'-- localforage.setItem('uiLocalStore', state)- commit('setVisibleLastTrns', nextStatus)- },-// visible cats charttoogleVisibleCatsChart ({ commit, state }) {let nextStatusdiff --git a/src/components/ui/store/index.js b/src/components/ui/store/index.jsindex 3aaf280d..1773cbb5 100644--- a/src/components/ui/store/index.js+++ b/src/components/ui/store/index.js@@ -10,7 +10,6 @@ const state = {prevTab: null,statGraphsVisible: true,lastUsedCatsInTrnForm: 'hidden',- lastTrns: 'hidden',catsChart: 'visible',statItems: 'visible',stat: {diff --git a/src/components/ui/store/mutations.js b/src/components/ui/store/mutations.jsindex 8779505c..0428827b 100644--- a/src/components/ui/store/mutations.js+++ b/src/components/ui/store/mutations.js@@ -34,11 +34,6 @@ export default {state.lastUsedCatsInTrnForm = status},- // visible last trns in mobile stat- setVisibleLastTrns (state, status) {- state.lastTrns = status- },-// visible cats chartssetVisibleCatsChart (state, status) {state.catsChart = status