feat: Show the sender email address (#3974)

This commit is contained in:
Nithin David Thomas 2022-02-14 15:46:20 +05:30 committed by GitHub
parent 25001689ec
commit 74d9203868
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -4,6 +4,10 @@
class="message__mail-head" class="message__mail-head"
:class="{ 'is-incoming': isIncoming }" :class="{ 'is-incoming': isIncoming }"
> >
<div v-if="fromMail" class="meta-wrap">
<span class="message__content--type">{{ $t('EMAIL_HEADER.FROM') }}:</span>
<span>{{ fromMail }}</span>
</div>
<div v-if="toMails" class="meta-wrap"> <div v-if="toMails" class="meta-wrap">
<span class="message__content--type">{{ $t('EMAIL_HEADER.TO') }}:</span> <span class="message__content--type">{{ $t('EMAIL_HEADER.TO') }}:</span>
<span>{{ toMails }}</span> <span>{{ toMails }}</span>
@ -46,6 +50,10 @@ export default {
}, },
}, },
computed: { computed: {
fromMail() {
const from = this.emailAttributes.from;
return from.join(', ');
},
toMails() { toMails() {
const to = this.emailAttributes.to || []; const to = this.emailAttributes.to || [];
return to.join(', '); return to.join(', ');

View file

@ -184,6 +184,7 @@
} }
}, },
"EMAIL_HEADER": { "EMAIL_HEADER": {
"FROM": "From",
"TO": "To", "TO": "To",
"BCC": "Bcc", "BCC": "Bcc",
"CC": "Cc", "CC": "Cc",