disable the sort button when fewer than two items are present

This commit is contained in:
MaysWind
2026-03-01 23:01:23 +08:00
parent 4845fdedfd
commit d2ce801277
7 changed files with 30 additions and 12 deletions
@@ -39,6 +39,7 @@ export function useAccountListPageBase() {
const allAccounts = computed<Account[]>(() => accountsStore.allAccounts);
const allCategorizedAccountsMap = computed<Record<number, CategorizedAccount>>(() => accountsStore.allCategorizedAccountsMap);
const allAccountCount = computed<number>(() => accountsStore.allAvailableAccountsCount);
const maxCategoryAccountCount = computed<number>(() => accountsStore.maxCategoryAccountCount);
const netAssets = computed<string>(() => {
const netAssets: number | HiddenAmount | NumberWithSuffix = accountsStore.getNetAssets(showAccountBalance.value);
@@ -101,6 +102,7 @@ export function useAccountListPageBase() {
allAccounts,
allCategorizedAccountsMap,
allAccountCount,
maxCategoryAccountCount,
netAssets,
totalAssets,
totalLiabilities,