From 13bae967081bc5111e63b84dabd3e50a285bd1ba Mon Sep 17 00:00:00 2001 From: negue Date: Fri, 8 Jun 2018 21:16:11 +0200 Subject: [PATCH] hide report button if already reported --- website/client/components/chat/chatCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/client/components/chat/chatCard.vue b/website/client/components/chat/chatCard.vue index 687fa7457b..5ac3788870 100644 --- a/website/client/components/chat/chatCard.vue +++ b/website/client/components/chat/chatCard.vue @@ -23,7 +23,7 @@ div span.action(v-if='!inbox', @click='copyAsTodo(msg)') .svg-icon(v-html="icons.copy", v-once) span(v-once) {{$t('copyAsTodo')}} - span.action(v-if='inbox || (user.flags.communityGuidelinesAccepted && msg.uuid !== "system" && !isMessageReported)', @click='report(msg)') + span.action(v-if='(inbox || (user.flags.communityGuidelinesAccepted && msg.uuid !== "system")) && !isMessageReported', @click='report(msg)') .svg-icon(v-html="icons.report", v-once) span(v-once) {{$t('report')}} span.action(v-if='msg.uuid === user._id || inbox || user.contributor.admin', @click='remove()')