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
@@ -277,6 +277,17 @@
@click="showAccountsIncludedInTotalDialog = true"
/>
</v-col>
<v-col cols="12" md="6">
<v-select
item-title="displayName"
item-value="value"
persistent-placeholder
:label="tt('Hide Categories Without Accounts')"
:placeholder="tt('Hide Categories Without Accounts')"
:items="enableDisableOptions"
v-model="hideCategoriesWithoutAccounts"
/>
</v-col>
</v-row>
</v-card-text>
</v-form>
@@ -421,6 +432,11 @@ const showTagInInsightsExplorerPage = computed<boolean>({
set: (value) => settingsStore.setShowTagInInsightsExplorerPage(value)
});
const hideCategoriesWithoutAccounts = computed<boolean>({
get: () => settingsStore.appSettings.hideCategoriesWithoutAccounts,
set: (value) => settingsStore.setHideCategoriesWithoutAccounts(value)
});
function init(): void {
loadingAccounts.value = true;