From ec6b5fb155cdc4fcf322de3d716a6c8ecc8d3e2a Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 30 Jun 2024 17:51:00 +0800 Subject: [PATCH] move type filter to more filter popover menu --- src/views/mobile/transactions/ListPage.vue | 83 +++++++++++----------- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/src/views/mobile/transactions/ListPage.vue b/src/views/mobile/transactions/ListPage.vue index 041db250..6060cdc3 100644 --- a/src/views/mobile/transactions/ListPage.vue +++ b/src/views/mobile/transactions/ListPage.vue @@ -25,7 +25,7 @@ - + @@ -35,15 +35,15 @@ - - {{ queryTransactionTypeName }} - {{ queryCategoryName }} {{ queryAccountName }} + + + - - - - - - - - - - - - - - - - - - - - @@ -406,6 +374,38 @@ + + + + + + + + + + + + + + + + + + + + + {{ $t('Are you sure you want to delete this transaction?') }} @@ -459,9 +459,9 @@ export default { customMaxDatetime: 0, transactionToDelete: null, showDatePopover: false, - showTypePopover: false, showCategoryPopover: false, showAccountPopover: false, + showMorePopover: false, showCustomDateRangeSheet: false, showDeleteActionSheet: false }; @@ -512,9 +512,6 @@ export default { queryMaxTime() { return this.$locale.formatUnixTimeToLongDateTime(this.userStore, this.query.maxTime); }, - queryTransactionTypeName() { - return this.getTransactionTypeName(this.query.type, 'Type'); - }, queryCategoryName() { return getNameByKeyValue(this.allCategories, this.query.categoryId, null, 'name', this.$t('Category')); }, @@ -753,7 +750,7 @@ export default { categoryId: removeCategoryFilter ? '0' : undefined }); - this.showTypePopover = false; + this.showMorePopover = false; this.reload(null); }, changeCategoryFilter(categoryId) { @@ -926,6 +923,10 @@ export default {