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'),
|
||||
|
@@ -121,6 +121,7 @@
|
||||
'allSendingPausedHeader': __('All sending is currently paused!'),
|
||||
'allSendingPausedBody': __('Your key to send with MailPoet is invalid.'),
|
||||
'allSendingPausedLink': __('Purchase a key'),
|
||||
'statsListingActionTitle': __('Statistics'),
|
||||
'statsHeading': _x('Stats: %s', 'This is a heading for the subscribers statistics page example: "Stats: mailpoet@example.com"'),
|
||||
'statsSentEmail': __('Sent email'),
|
||||
'statsOpened': __('Opened'),
|
||||
|
Reference in New Issue
Block a user