From 8fb3b3d68c4f71a134971f03b87dfe9f7ac8fadf Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 31 Aug 2022 09:33:42 +0200 Subject: [PATCH] if question open list tab --- frontend/src/pages/Community.vue | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Community.vue b/frontend/src/pages/Community.vue index 1753ca5d2..7e53106d5 100644 --- a/frontend/src/pages/Community.vue +++ b/frontend/src/pages/Community.vue @@ -2,7 +2,7 @@
- + - + +

{{ $t('community.myContributions') }}

@@ -108,6 +118,7 @@ export default { amount: '', }, updateAmount: '', + pleaseReply: false, } }, methods: { @@ -228,6 +239,13 @@ export default { } = result this.contributionCount = listContributions.contributionCount this.items = listContributions.contributionList + if (this.items.find((item) => item.state === 'IN_PROGRESS')) { + this.tabIndex = 1 + this.pleaseReply = true + } else { + this.tabIndex = 0 + this.pleaseReply = false + } }) .catch((err) => { this.toastError(err.message) @@ -276,6 +294,7 @@ export default { pageSize: this.pageSize, }) this.updateTransactions(0) + this.tabIndex = 1 }, }