diff --git a/assets/js/src/newsletters/newsletters.jsx b/assets/js/src/newsletters/newsletters.jsx
index ecfb5d1923..44e97c73a6 100644
--- a/assets/js/src/newsletters/newsletters.jsx
+++ b/assets/js/src/newsletters/newsletters.jsx
@@ -30,8 +30,8 @@ const getAutomaticEmailsRoutes = () => {
if (!window.mailpoet_automatic_emails) return null;
return _.map(window.mailpoet_automatic_emails, automaticEmail => ({
- path: `new/${automaticEmail.id}`,
- name: automaticEmail.id,
+ path: `new/${automaticEmail.slug}`,
+ name: automaticEmail.slug,
component: AutomaticEmailsEventsList,
data: {
automaticEmail: automaticEmail,
diff --git a/assets/js/src/newsletters/types.jsx b/assets/js/src/newsletters/types.jsx
index 0bc675526a..9e1bc13ec2 100644
--- a/assets/js/src/newsletters/types.jsx
+++ b/assets/js/src/newsletters/types.jsx
@@ -63,7 +63,7 @@ define(
{ MailPoet.I18n.t('setUp') }
@@ -76,7 +76,7 @@ define(
render: function () {
const defaultTypes = [
{
- id: 'standard',
+ slug: 'standard',
title: MailPoet.I18n.t('regularNewsletterTypeTitle'),
description: MailPoet.I18n.t('regularNewsletterTypeDescription'),
action: function () {
@@ -88,7 +88,7 @@ define(
}.bind(this)(),
},
{
- id: 'welcome',
+ slug: 'welcome',
title: MailPoet.I18n.t('welcomeNewsletterTypeTitle'),
description: MailPoet.I18n.t('welcomeNewsletterTypeDescription'),
action: (function () {
@@ -102,7 +102,7 @@ define(
}()),
},
{
- id: 'notification',
+ slug: 'notification',
title: MailPoet.I18n.t('postNotificationNewsletterTypeTitle'),
description: MailPoet.I18n.t('postNotificationNewsletterTypeDescription'),
action: function () {
@@ -125,7 +125,7 @@ define(
{types.map((type, index) => (
- -
+
-
{type.thumbnailImage ?

: null}
diff --git a/assets/js/src/newsletters/types/automatic_emails/events_list.jsx b/assets/js/src/newsletters/types/automatic_emails/events_list.jsx
index f68f4a07e9..b6a83c88fb 100644
--- a/assets/js/src/newsletters/types/automatic_emails/events_list.jsx
+++ b/assets/js/src/newsletters/types/automatic_emails/events_list.jsx
@@ -11,8 +11,8 @@ class AutomaticEmailsEventsList extends React.Component {
this.eventsConfigurator = this.eventsConfigurator.bind(this);
}
- eventsConfigurator(eventId) {
- this.props.router.push(`new/${this.automaticEmail.id}/${eventId}/conditions`);
+ eventsConfigurator(eventSlug) {
+ this.props.router.push(`new/${this.automaticEmail.slug}/${eventSlug}/conditions`);
}
displayEvents() {
@@ -32,7 +32,7 @@ class AutomaticEmailsEventsList extends React.Component {
action = (
{event.actionButtonTitle || MailPoet.I18n.t('setUp')}
@@ -40,7 +40,7 @@ class AutomaticEmailsEventsList extends React.Component {
}
return (
-
-
+
-
{event.thumbnailImage ?

: null}