Send confirmation email + page

This commit is contained in:
Jonathan Labreuille
2016-02-24 10:56:47 +01:00
parent cf6466197a
commit 14fe333678
5 changed files with 225 additions and 30 deletions

View File

@@ -208,6 +208,16 @@ const bulk_actions = [
);
}
},
{
name: 'sendConfirmationEmail',
label: 'Resend confirmation email',
onSuccess: function(response) {
MailPoet.Notice.success(
'%$1d confirmation emails have been sent.'
.replace('%$1d', ~~response)
);
}
},
{
name: 'trash',
label: 'Trash',
@@ -272,13 +282,13 @@ const SubscriberList = React.createClass({
subscriber.subscriptions.map((subscription) => {
const segment = this.getSegmentFromId(subscription.segment_id);
if(segment === false) return;
if (subscription.status === 'subscribed') {
subscribed_segments.push(segment.name);
} else {
} else if (subscription.status === 'unsubscribed') {
unsubscribed_segments.push(segment.name);
}
});
segments = (
<span>
<span className="mailpoet_segments_subscribed">