feat: Support cc and bcc in email replies (#3098)

Co-authored-by: Tejaswini <tejaswini@chatwoot.com>
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Nithin David Thomas
2021-10-11 13:00:48 +05:30
committed by GitHub
parent 0e0632be22
commit 68e697c379
8 changed files with 135 additions and 25 deletions

View File

@@ -36,6 +36,14 @@ export default {
type: Boolean,
default: true,
},
cc: {
type: Array,
default: [],
},
bcc: {
type: Array,
default: [],
}
},
computed: {
toMails() {
@@ -43,11 +51,11 @@ export default {
return to.join(', ');
},
ccMails() {
const cc = this.emailAttributes.cc || [];
const cc = this.emailAttributes.cc || this.cc || [];
return cc.join(', ');
},
bccMails() {
const bcc = this.emailAttributes.bcc || [];
const bcc = this.emailAttributes.bcc || this.bcc || [];
return bcc.join(', ');
},
subject() {