support hiding amount in home page

This commit is contained in:
MaysWind
2021-01-10 22:06:26 +08:00
parent cfed32b314
commit 94af9be5e4
5 changed files with 43 additions and 9 deletions
+3
View File
@@ -11,6 +11,7 @@ const defaultSettings = {
autoUpdateExchangeRatesData: true,
thousandsSeparator: true,
currencyDisplayMode: 'symbol', // or 'none' or 'code' or 'name'
showAmountInHomePage: true,
showAccountBalance: true,
animate: true,
autoDarkMode: true
@@ -88,6 +89,8 @@ export default {
setEnableThousandsSeparator: value => setOption('thousandsSeparator', value),
getCurrencyDisplayMode: () => getOption('currencyDisplayMode'),
setCurrencyDisplayMode: value => setOption('currencyDisplayMode', value),
isShowAmountInHomePage: () => getOption('showAmountInHomePage'),
setShowAmountInHomePage: value => setOption('showAmountInHomePage', value),
isShowAccountBalance: () => getOption('showAccountBalance'),
setShowAccountBalance: value => setOption('showAccountBalance', value),
isEnableAnimate: () => getOption('animate'),