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
+3
View File
@@ -16,6 +16,7 @@ const defaultSettings = {
thousandsSeparator: true,
currencyDisplayMode: currencyConstants.defaultCurrencyDisplayMode,
showAmountInHomePage: true,
showTotalAmountInTransactionListPage: true,
showAccountBalance: true,
statistics: {
defaultChartType: statisticsConstants.defaultChartType,
@@ -145,6 +146,8 @@ export default {
setCurrencyDisplayMode: value => setOption('currencyDisplayMode', value),
isShowAmountInHomePage: () => getOption('showAmountInHomePage'),
setShowAmountInHomePage: value => setOption('showAmountInHomePage', value),
isShowTotalAmountInTransactionListPage: () => getOption('showTotalAmountInTransactionListPage'),
setShowTotalAmountInTransactionListPage: value => setOption('showTotalAmountInTransactionListPage', value),
isShowAccountBalance: () => getOption('showAccountBalance'),
setShowAccountBalance: value => setOption('showAccountBalance', value),
getStatisticsDefaultChartType: () => getSubOption('statistics', 'defaultChartType'),