From 71a504fff1f3e26e56b8ef1c302a7661095ae9b8 Mon Sep 17 00:00:00 2001 From: Dmytro Tolok Date: Mon, 25 Sep 2023 19:28:09 +0200 Subject: [PATCH] fix(flag): change the way how flag action appears in proposal --- src/components/SpaceProposalHeader.vue | 9 +++++---- src/locales/default.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/SpaceProposalHeader.vue b/src/components/SpaceProposalHeader.vue index 2f8001c1de6..a2f26b1de9e 100644 --- a/src/components/SpaceProposalHeader.vue +++ b/src/components/SpaceProposalHeader.vue @@ -21,10 +21,12 @@ const isCreator = computed(() => props.proposal?.author === web3Account.value); const threeDotItems = computed(() => { const items = [ { text: t('duplicate'), action: 'duplicate' }, - { text: t('report'), action: 'report' } ]; - if ((props.isAdmin || props.isModerator) && !props.proposal.flagged) + if ((props.isAdmin || props.isModerator) && !props.proposal.flagged) { items.push({ text: t('flag'), action: 'flag' }); + } else { + items.push({ text: t('report'), action: 'report' }); + } if (props.isAdmin || props.isModerator || isCreator.value) items.push({ text: t('delete'), action: 'delete' }); return items; @@ -157,8 +159,7 @@ watch(