mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
only show categories with specified type in category filter dialog / page
This commit is contained in:
@@ -906,7 +906,13 @@ export default {
|
||||
}
|
||||
},
|
||||
filterMultipleCategories() {
|
||||
this.f7router.navigate('/settings/filter/category?type=transactionListCurrent');
|
||||
let navigateUrl = '/settings/filter/category?type=transactionListCurrent';
|
||||
|
||||
if (this.allTransactionTypes.Income <= this.query.type && this.query.type <= this.allTransactionTypes.Transfer) {
|
||||
navigateUrl += '&allowCategoryTypes=' + transactionTypeToCategoryType(this.query.type);
|
||||
}
|
||||
|
||||
this.f7router.navigate(navigateUrl);
|
||||
},
|
||||
filterMultipleAccounts() {
|
||||
this.f7router.navigate('/settings/filter/account?type=transactionListCurrent');
|
||||
|
||||
Reference in New Issue
Block a user