mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 02:23:28 +08:00
Add subject to expanded message item for each email (#2293)
This commit is contained in:
parent
36e33ecfa8
commit
51dd8d146c
1 changed files with 16 additions and 0 deletions
|
@ -226,6 +226,7 @@ export default class MessageItem extends React.Component<MessageItemProps, Messa
|
|||
onClick={this._onClickParticipants}
|
||||
isDetailed={this.state.detailedHeaders}
|
||||
/>
|
||||
{this._renderSubject()}
|
||||
{this._renderFolder()}
|
||||
{this._renderHeaderDetailToggle()}
|
||||
</header>
|
||||
|
@ -268,6 +269,21 @@ export default class MessageItem extends React.Component<MessageItemProps, Messa
|
|||
);
|
||||
}
|
||||
|
||||
_renderSubject() {
|
||||
if (!this.state.detailedHeaders) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const subject = this.props.message.subject;
|
||||
|
||||
return (
|
||||
<div className="header-row">
|
||||
<div className="header-label">{localized('Subject')}: </div>
|
||||
<div className="header-name">{subject}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
_renderFolder() {
|
||||
if (!this.state.detailedHeaders) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue