From bca9982c57effa48eb0148652c8536c9fb3146af Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 7 Mar 2022 00:02:00 +0800 Subject: [PATCH] hide add icon when filter parent account in transaction list page --- src/views/mobile/transactions/List.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/mobile/transactions/List.vue b/src/views/mobile/transactions/List.vue index 68a86ad4..b1f12a96 100644 --- a/src/views/mobile/transactions/List.vue +++ b/src/views/mobile/transactions/List.vue @@ -10,7 +10,7 @@ - + @@ -533,6 +533,17 @@ export default { return this.$store.getters.currentUserDefaultCurrency; }, + canAddTransaction() { + if (this.query.accountId && this.query.accountId !== '0') { + const account = this.allAccounts[this.query.accountId]; + + if (account && account.type === this.$constants.account.allAccountTypes.MultiSubAccounts) { + return false; + } + } + + return true; + }, currentTimezoneOffsetMinutes() { return this.$utilities.getTimezoneOffsetMinutes(); },