refactor properties - added another "inbox" check

This commit is contained in:
negue
2019-01-14 23:17:26 +01:00
parent 61606cb69d
commit c66d2cb469
2 changed files with 19 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ div
span(v-b-tooltip="", :title="msg.timestamp | date") {{ msg.timestamp | timeAgo }} 
span(v-if="msg.client && user.contributor.level >= 4") ({{ msg.client }})
.text(v-html='atHighlight(parseMarkdown(msg.text))')
.reported(v-if="isMessageReported && inbox")
.reported(v-if="isMessageReported && (inbox === true)")
span(v-once) {{ $t('reportedMessage')}}
br
span(v-once) {{ $t('canDeleteNow') }}
@@ -174,7 +174,14 @@ import tier9 from 'assets/svg/tier-staff.svg';
import tierNPC from 'assets/svg/tier-npc.svg';
export default {
props: ['msg', 'inbox', 'groupId'],
props: {
msg: {},
inbox: {
type: Boolean,
default: false,
},
groupId: {},
},
mixins: [styleHelper],
data () {
return {

View File

@@ -107,7 +107,16 @@ import copyAsTodoModal from './copyAsTodoModal';
import chatCard from './chatCard';
export default {
props: ['chat', 'groupType', 'groupId', 'groupName', 'inbox'],
props: {
chat: {},
inbox: {
type: Boolean,
default: false,
},
groupType: {},
groupId: {},
groupName: {},
},
components: {
copyAsTodoModal,
chatCard,