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
+13
View File
@@ -58,6 +58,11 @@
</select>
</f7-list-item>
<f7-list-item>
<span>{{ $t('Show Amount In Home Page') }}</span>
<f7-toggle :checked="showAmountInHomePage" @toggle:change="showAmountInHomePage = $event"></f7-toggle>
</f7-list-item>
<f7-list-item>
<span>{{ $t('Show Account Balance') }}</span>
<f7-toggle :checked="showAccountBalance" @toggle:change="showAccountBalance = $event"></f7-toggle>
@@ -139,6 +144,14 @@ export default {
this.$settings.setCurrencyDisplayMode(value);
}
},
showAmountInHomePage: {
get: function () {
return this.$settings.isShowAmountInHomePage();
},
set: function (value) {
this.$settings.setShowAmountInHomePage(value);
}
},
showAccountBalance: {
get: function () {
return this.$settings.isShowAccountBalance();