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:
@@ -413,7 +413,7 @@
|
||||
</v-dialog>
|
||||
|
||||
<v-dialog width="800" v-model="showFilterCategoryDialog">
|
||||
<category-filter-settings-card type="transactionListCurrent" :dialog-mode="true"
|
||||
<category-filter-settings-card type="transactionListCurrent" :dialog-mode="true" :category-types="allowCategoryTypes"
|
||||
@settings:change="changeMultipleCategoriesFilter" />
|
||||
</v-dialog>
|
||||
|
||||
@@ -653,6 +653,13 @@ export default {
|
||||
queryMonthlyData() {
|
||||
return isDateRangeMatchOneMonth(this.query.minTime, this.query.maxTime);
|
||||
},
|
||||
allowCategoryTypes() {
|
||||
if (this.allTransactionTypes.Income <= this.query.type && this.query.type <= this.allTransactionTypes.Transfer) {
|
||||
return transactionTypeToCategoryType(this.query.type).toString();
|
||||
}
|
||||
|
||||
return '';
|
||||
},
|
||||
countPerPage: {
|
||||
get: function () {
|
||||
if (this.temporaryCountPerPage) {
|
||||
|
||||
Reference in New Issue
Block a user