Don't show "Not sent yet" in statistics and sent at columns
[MAILPOET-2780]
This commit is contained in:
@@ -146,7 +146,7 @@ const renderItem = (newsletter, actions, meta) => {
|
||||
</td>
|
||||
) : null }
|
||||
<td className="column-date" data-colname={MailPoet.I18n.t('sentOn')}>
|
||||
{ (newsletter.sent_at) ? MailPoet.Date.format(newsletter.sent_at) : MailPoet.I18n.t('notSentYet') }
|
||||
{ (newsletter.sent_at) ? MailPoet.Date.format(newsletter.sent_at) : null }
|
||||
</td>
|
||||
</>
|
||||
);
|
||||
|
@@ -214,7 +214,7 @@ class NewsletterListStandard extends React.Component {
|
||||
</td>
|
||||
) : null }
|
||||
<td className="column-date" data-colname={MailPoet.I18n.t('sentOn')}>
|
||||
<abbr>{ (newsletter.sent_at) ? MailPoet.Date.format(newsletter.sent_at) : MailPoet.I18n.t('notSentYet') }</abbr>
|
||||
<abbr>{ (newsletter.sent_at) ? MailPoet.Date.format(newsletter.sent_at) : null }</abbr>
|
||||
</td>
|
||||
</div>
|
||||
);
|
||||
|
@@ -43,9 +43,7 @@ const Statistics = ({ newsletter, isSent, currentTime }) => {
|
||||
&& newsletter.queue.status !== 'scheduled';
|
||||
}
|
||||
if (!sent) {
|
||||
return (
|
||||
<span>{MailPoet.I18n.t('notSentYet')}</span>
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
const params = {
|
||||
|
Reference in New Issue
Block a user