mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 02:23:28 +08:00
Added "Show original" in Message controls Actions Menu
This commit is contained in:
parent
c394dc808f
commit
01765c47da
2 changed files with 9 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -72,3 +72,4 @@ client_secret.json
|
|||
**.bin
|
||||
**.tar.gz
|
||||
/app/mailsync.dSYM
|
||||
.idea
|
||||
|
|
|
@ -41,13 +41,18 @@ export default class MessageControls extends React.Component<MessageControlsProp
|
|||
select: this._onForward,
|
||||
};
|
||||
|
||||
const showOriginal = {
|
||||
name: localized('Show Original'),
|
||||
select: this._onShowOriginal,
|
||||
};
|
||||
|
||||
if (!this.props.message.canReplyAll()) {
|
||||
return [reply, forward];
|
||||
return [reply, forward, showOriginal];
|
||||
}
|
||||
const defaultReplyType = AppEnv.config.get('core.sending.defaultReplyType');
|
||||
return defaultReplyType === 'reply-all'
|
||||
? [replyAll, reply, forward]
|
||||
: [reply, replyAll, forward];
|
||||
? [replyAll, reply, forward, showOriginal]
|
||||
: [reply, replyAll, forward, showOriginal];
|
||||
}
|
||||
|
||||
_dropdownMenu(items) {
|
||||
|
|
Loading…
Reference in a new issue