Add subject to expanded message item for each email (#2293)

This commit is contained in:
Janosch Maier 2021-03-26 16:12:52 +01:00 committed by GitHub
parent 36e33ecfa8
commit 51dd8d146c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')}:&nbsp;</div>
<div className="header-name">{subject}</div>
</div>
);
}
_renderFolder() {
if (!this.state.detailedHeaders) {
return false;