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="{ '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">
<span class="message__content--type">{{ $t('EMAIL_HEADER.TO') }}:</span>
<span>{{ toMails }}</span>
@ -46,6 +50,10 @@ export default {
},
},
computed: {
fromMail() {
const from = this.emailAttributes.from;
return from.join(', ');
},
toMails() {
const to = this.emailAttributes.to || [];
return to.join(', ');

View file

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