support toggle whether show total amount in transaction list page

This commit is contained in:
MaysWind
2021-04-05 23:09:20 +08:00
parent 668ece6490
commit 4737258b96
5 changed files with 24 additions and 3 deletions
+13
View File
@@ -79,6 +79,11 @@
<f7-toggle :checked="showAccountBalance" @toggle:change="showAccountBalance = $event"></f7-toggle>
</f7-list-item>
<f7-list-item>
<span>{{ $t('Show Total Amount In Transaction List Page') }}</span>
<f7-toggle :checked="showTotalAmountInTransactionListPage" @toggle:change="showTotalAmountInTransactionListPage = $event"></f7-toggle>
</f7-list-item>
<f7-list-item :title="$t('Statistics Settings')" link="/statistic/settings"></f7-list-item>
<f7-list-item>
@@ -181,6 +186,14 @@ export default {
this.$settings.setShowAccountBalance(value);
}
},
showTotalAmountInTransactionListPage: {
get: function () {
return this.$settings.isShowTotalAmountInTransactionListPage();
},
set: function (value) {
this.$settings.setShowTotalAmountInTransactionListPage(value);
}
},
isEnableAnimate: {
get: function () {
return this.$settings.isEnableAnimate();