Hide archived categories in transaction forms
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
d904a806ed
commit
3c1449ac3b
2 changed files with 4 additions and 2 deletions
|
@ -117,7 +117,8 @@ fun RecurringTransactionForm(store: Store) {
|
||||||
setAmount = setAmount,
|
setAmount = setAmount,
|
||||||
expense = expense,
|
expense = expense,
|
||||||
setExpense = setExpense,
|
setExpense = setExpense,
|
||||||
categories = state.categories?.filter { c -> c.expense == expense } ?: emptyList(),
|
categories = state.categories?.filter { c -> c.expense == expense && !c.archived }
|
||||||
|
?: emptyList(),
|
||||||
category = category,
|
category = category,
|
||||||
setCategory = setCategory
|
setCategory = setCategory
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -111,7 +111,8 @@ fun TransactionForm(store: Store) {
|
||||||
setAmount = setAmount,
|
setAmount = setAmount,
|
||||||
expense = expense,
|
expense = expense,
|
||||||
setExpense = setExpense,
|
setExpense = setExpense,
|
||||||
categories = state.categories?.filter { c -> c.expense == expense } ?: emptyList(),
|
categories = state.categories?.filter { c -> c.expense == expense && !c.archived }
|
||||||
|
?: emptyList(),
|
||||||
category = category,
|
category = category,
|
||||||
setCategory = setCategory
|
setCategory = setCategory
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue