Skip to content

Open source personal finance application

remove statLastTrnsVisibility

ilkomea451bba5c8e0
diff --git a/components/stat/StatCustomizeMenuMobile.vue b/components/stat/StatCustomizeMenuMobile.vue
index c6379de0..c6b1629e 100644
--- a/components/stat/StatCustomizeMenuMobile.vue
+++ b/components/stat/StatCustomizeMenuMobile.vue
@@ -91,13 +91,6 @@ div
@onClick="$store.dispatch('ui/toogleVisibilityStatItems')"
)
- ContextMenuItem(
- icon="mdi mdi-history"
- title="Last trns"
- :showCheckbox="true"
- :checkboxValue="$store.state.ui.statLastTrnsVisibility === 'visible'"
- @onClick="$store.dispatch('ui/toogleStatLastTrnsVisibility')")
-
.context-menu-sep
ContextMenuItem(
diff --git a/components/stat/StatMobile.vue b/components/stat/StatMobile.vue
index 7db184ea..14d65b3e 100644
--- a/components/stat/StatMobile.vue
+++ b/components/stat/StatMobile.vue
@@ -246,11 +246,8 @@ export default {
:currency="$store.state.currencies.base"
:key="categoryId"
:type="0"
- :total="statCurrentPeriod.categories[categoryId].expenses")
-
- .stat__trns(v-if="$store.state.ui.statLastTrnsVisibility === 'visible' && $store.getters['trns/selectedTrnsIdsWithDate'].length > 0")
- .stat__name Last transactions
- TrnsList(:limit="6", ui="lastTrns")
+ :total="statCurrentPeriod.categories[categoryId].expenses"
+ )
.customize
StatCustomizeMenuMobile
diff --git a/store/ui/actions.js b/store/ui/actions.js
index d245b5e0..21b5c2dd 100644
--- a/store/ui/actions.js
+++ b/store/ui/actions.js
@@ -156,7 +156,6 @@ export default {
period: rootState.filter.period,
statGraphsVisibility: rootState.ui.statGraphsVisibility,
statItems: rootState.ui.statItems,
- statLastTrnsVisibility: rootState.ui.statLastTrnsVisibility,
statSummuryVisibility: rootState.ui.statSummuryVisibility,
totalChartPeriods: rootState.chart.periods
}
diff --git a/store/ui/index.js b/store/ui/index.js
index 5a337258..508f2222 100644
--- a/store/ui/index.js
+++ b/store/ui/index.js
@@ -10,7 +10,6 @@ const state = () => ({
catsChart: 'visible',
statGraphsVisibility: 'visible',
statItems: 'visible',
- statLastTrnsVisibility: 'hidden',
statSummuryVisibility: 'visible',
stat: {
activeTab: 'stat'