automatically save transaction draft

This commit is contained in:
MaysWind
2024-09-22 14:41:35 +08:00
parent 49df497f35
commit 4c13b7ad02
16 changed files with 384 additions and 26 deletions
+5
View File
@@ -13,6 +13,7 @@ export const useSettingsStore = defineStore('settings', {
applicationLock: settings.isEnableApplicationLock(),
applicationLockWebAuthn: settings.isEnableApplicationLockWebAuthn(),
autoUpdateExchangeRatesData: settings.isAutoUpdateExchangeRatesData(),
autoSaveTransactionDraft: settings.getAutoSaveTransactionDraft(),
autoGetCurrentGeoLocation: settings.isAutoGetCurrentGeoLocation(),
showAmountInHomePage: settings.isShowAmountInHomePage(),
timezoneUsedForStatisticsInHomePage: settings.getTimezoneUsedForStatisticsInHomePage(),
@@ -63,6 +64,10 @@ export const useSettingsStore = defineStore('settings', {
settings.setAutoUpdateExchangeRatesData(value);
this.appSettings.autoUpdateExchangeRatesData = value;
},
setAutoSaveTransactionDraft(value) {
settings.setAutoSaveTransactionDraft(value);
this.appSettings.autoSaveTransactionDraft = value;
},
setAutoGetCurrentGeoLocation(value) {
settings.setAutoGetCurrentGeoLocation(value);
this.appSettings.autoGetCurrentGeoLocation = value;