diff --git a/website/client/components/chat/chatCard.vue b/website/client/components/chat/chatCard.vue index e2db8411b1..687fa7457b 100644 --- a/website/client/components/chat/chatCard.vue +++ b/website/client/components/chat/chatCard.vue @@ -13,6 +13,8 @@ div .svg-icon(v-html="tierIcon", v-if='showShowTierStyle') p.time {{msg.timestamp | timeAgo}} .text(v-markdown='msg.text') + .reported(v-if="isMessageReported") + span(v-once) {{ $t('reportedMessage')}} hr .action(@click='like()', v-if='!inbox && msg.likes', :class='{active: msg.likes[user._id]}') .svg-icon(v-html="icons.like") @@ -20,13 +22,13 @@ div span(v-if='msg.likes[user._id]') {{ $t('liked') }} span.action(v-if='!inbox', @click='copyAsTodo(msg)') .svg-icon(v-html="icons.copy", v-once) - | {{$t('copyAsTodo')}} - span.action(v-if='inbox || (user.flags.communityGuidelinesAccepted && msg.uuid !== "system")', @click='report(msg)') + span(v-once) {{$t('copyAsTodo')}} + span.action(v-if='inbox || (user.flags.communityGuidelinesAccepted && msg.uuid !== "system" && !isMessageReported)', @click='report(msg)') .svg-icon(v-html="icons.report", v-once) - | {{$t('report')}} + span(v-once) {{$t('report')}} span.action(v-if='msg.uuid === user._id || inbox || user.contributor.admin', @click='remove()') .svg-icon(v-html="icons.delete", v-once) - | {{$t('delete')}} + span(v-once) {{$t('delete')}} span.action.float-right.liked(v-if='likeCount > 0') .svg-icon(v-html="icons.liked") | + {{ likeCount }} @@ -34,6 +36,7 @@ div