add search box in transaction category page / dialog

This commit is contained in:
MaysWind
2025-12-14 01:05:42 +08:00
parent a12038e40c
commit b1cefa5a34
14 changed files with 279 additions and 298 deletions
+4 -4
View File
@@ -17,7 +17,7 @@ import {
import {
categoryTypeToTransactionType,
isSubCategoryIdAvailable,
getFirstAvailableCategoryId,
getFirstVisibleCategoryId,
getFirstAvailableSubCategoryId
} from './category.ts';
@@ -66,7 +66,7 @@ export function setTransactionModelByTransaction(transaction: Transaction, trans
}
if (!transaction.expenseCategoryId) {
transaction.expenseCategoryId = getFirstAvailableCategoryId(allCategories[CategoryType.Expense]);
transaction.expenseCategoryId = getFirstVisibleCategoryId(allCategories[CategoryType.Expense]);
}
}
@@ -81,7 +81,7 @@ export function setTransactionModelByTransaction(transaction: Transaction, trans
}
if (!transaction.incomeCategoryId) {
transaction.incomeCategoryId = getFirstAvailableCategoryId(allCategories[CategoryType.Income]);
transaction.incomeCategoryId = getFirstVisibleCategoryId(allCategories[CategoryType.Income]);
}
}
@@ -96,7 +96,7 @@ export function setTransactionModelByTransaction(transaction: Transaction, trans
}
if (!transaction.transferCategoryId) {
transaction.transferCategoryId = getFirstAvailableCategoryId(allCategories[CategoryType.Transfer]);
transaction.transferCategoryId = getFirstVisibleCategoryId(allCategories[CategoryType.Transfer]);
}
}