Chat flag inbox (#9761)

* Refactored chat reporting

* Added inbox flag chat

* Added flag chat to inbox

* Added you have flagged message
This commit is contained in:
Keith Holliday
2018-01-08 13:13:25 -06:00
committed by GitHub
parent 7eac5cebf5
commit 98d4fb0f34
15 changed files with 494 additions and 218 deletions

View File

@@ -3,6 +3,7 @@ div
.mentioned-icon(v-if='isUserMentioned')
.message-hidden(v-if='msg.flagCount === 1 && user.contributor.admin') Message flagged once, not hidden
.message-hidden(v-if='msg.flagCount > 1 && user.contributor.admin') Message hidden
.flag-message(v-if='msg.flags && msg.flags[user._id]') {{$t('youFlaggedThisMessage')}}
.card-body
h3.leader(
:class='userLevelStyle(msg)',
@@ -23,7 +24,7 @@ div
.svg-icon(v-html="icons.copy")
| {{$t('copyAsTodo')}}
// @TODO make copyAsTodo work in the inbox
span.action(v-if='!inbox && user.flags.communityGuidelinesAccepted && msg.uuid !== "system"', @click='report(msg)')
span.action(v-if='user.flags.communityGuidelinesAccepted && msg.uuid !== "system"', @click='report(msg)')
.svg-icon(v-html="icons.report")
| {{$t('report')}}
// @TODO make flagging/reporting work in the inbox. NOTE: it must work even if the communityGuidelines are not accepted and it MUST work for messages that you have SENT as well as received. -- Alys
@@ -49,7 +50,7 @@ div
top: -.5em;
}
.message-hidden {
.message-hidden, .flag-message {
margin-left: 1.5em;
margin-top: 1em;
color: red;