Add "cc" to "View in separate window"/"Print"

This commit is contained in:
RainLoop Team 2017-07-05 22:20:24 +03:00
parent e7d280c0a7
commit 483549660b
3 changed files with 28 additions and 24 deletions

View file

@ -640,6 +640,7 @@ class MessageModel extends AbstractModel
const
timeStampInUTC = this.dateTimeStampInUTC() || 0,
ccLine = this.ccToLine(false),
m = 0 < timeStampInUTC ? moment.unix(timeStampInUTC) : null;
previewMessage({
@ -648,7 +649,10 @@ class MessageModel extends AbstractModel
date: m ? m.format('LLL') : '',
fromCreds: this.fromToLine(false),
toLabel: i18n('MESSAGE/LABEL_TO'),
toCreds: this.toToLine(false)
toCreds: this.toToLine(false),
ccClass: ccLine ? '' : 'rl-preview-hide',
ccLabel: i18n('MESSAGE/LABEL_CC'),
ccCreds: ccLine
}, this.body, this.isHtml(), print);
}