support setting account categories hidden which has no accounts

This commit is contained in:
MaysWind
2026-01-04 14:05:52 +08:00
parent fb25f589fb
commit 6e369f39a4
24 changed files with 53 additions and 3 deletions
+3
View File
@@ -55,6 +55,7 @@ export interface ApplicationSettings extends BaseApplicationSetting {
showTagInInsightsExplorerPage: boolean;
// Account List Page
totalAmountExcludeAccountIds: Record<string, boolean>;
hideCategoriesWithoutAccounts: boolean;
// Exchange Rates Data Page
currencySortByInExchangeRatesPage: number;
// Statistics Settings
@@ -120,6 +121,7 @@ export const ALL_ALLOWED_CLOUD_SYNC_APP_SETTING_KEY_TYPES: Record<string, UserAp
'showTagInInsightsExplorerPage': UserApplicationCloudSettingType.Boolean,
// Account List Page
'totalAmountExcludeAccountIds': UserApplicationCloudSettingType.StringBooleanMap,
'hideCategoriesWithoutAccounts': UserApplicationCloudSettingType.Boolean,
// Exchange Rates Data Page
'currencySortByInExchangeRatesPage': UserApplicationCloudSettingType.Number,
// Statistics Settings
@@ -170,6 +172,7 @@ export const DEFAULT_APPLICATION_SETTINGS: ApplicationSettings = {
showTagInInsightsExplorerPage: true,
// Account List Page
totalAmountExcludeAccountIds: {},
hideCategoriesWithoutAccounts: false,
// Exchange Rates Data Page
currencySortByInExchangeRatesPage: CurrencySortingType.Default.type,
// Statistics Settings