update local expense / income amount color settings

This commit is contained in:
MaysWind
2024-07-14 10:58:20 +08:00
parent b1343ba92a
commit 1ce0c62c30
10 changed files with 40 additions and 1 deletions
+3
View File
@@ -79,6 +79,7 @@ import { useStatisticsStore } from '@/stores/statistics.js';
import { useExchangeRatesStore } from '@/stores/exchangeRates.js';
import { getDesktopVersionPath } from '@/lib/version.js';
import { setExpenseAndIncomeAmountColor } from '@/lib/ui.js';
export default {
props: [
@@ -185,6 +186,8 @@ export default {
const localeDefaultSettings = self.$locale.initLocale(self.userStore.currentUserLanguage, self.settingsStore.appSettings.timeZone);
self.settingsStore.updateLocalizedDefaultSettings(localeDefaultSettings);
setExpenseAndIncomeAmountColor(self.userStore.currentUserExpenseAmountColor, self.userStore.currentUserIncomeAmountColor);
router.navigate('/');
}).catch(error => {
self.logouting = false;