Add link to statistics page to subscribers listing
[PREMIUM-145]
This commit is contained in:
committed by
Veljko V
parent
a3aedb6805
commit
19fc660b90
@@ -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'),
|
||||
|
Reference in New Issue
Block a user