Add 'from' and 'received at' to the email summary.
Really useful in deciding what to read.
This commit is contained in:
parent
d71f18cce1
commit
5c293219f3
3 changed files with 18 additions and 3 deletions
|
|
@ -48,11 +48,16 @@ class EmailSummary extends React.Component<
|
|||
this.props.mailbox.id +
|
||||
"/" +
|
||||
this.props.emailId;
|
||||
const stub = this.props.emailStub;
|
||||
return (
|
||||
<div className="p-2 border" key={this.props.emailId}>
|
||||
<a className="btn" href={href}>
|
||||
{this.props.emailStub != null
|
||||
? this.props.emailStub.subject
|
||||
{stub != null
|
||||
? stub.receivedAt +
|
||||
" - " +
|
||||
(stub.from == null ? "?" : stub.from[0].name) +
|
||||
" - " +
|
||||
stub.subject
|
||||
: this.props.emailId}
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue