Add link to statistics page to subscribers listing

[PREMIUM-145]
This commit is contained in:
Rostislav Wolny
2020-08-24 14:04:03 +02:00
committed by Veljko V
parent a3aedb6805
commit 19fc660b90
2 changed files with 18 additions and 0 deletions

View File

@@ -228,6 +228,23 @@ const bulkActions = [
];
const itemActions = [
{
name: 'statistics',
label: MailPoet.I18n.t('statsListingActionTitle'),
link: function link(subscriber, location) {
return (
<Link to={{
pathname: `/stats/${subscriber.id}`,
state: {
backUrl: location?.pathname,
},
}}
>
{MailPoet.I18n.t('statsListingActionTitle')}
</Link>
);
},
},
{
name: 'edit',
label: MailPoet.I18n.t('edit'),