From 23dff7403d2ceb84a5534e5aa58c8e381550e234 Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 12 Dec 2017 19:47:16 -0500 Subject: [PATCH] Updates variable names to match those in views/newsletters.html --- assets/js/src/newsletters/listings/notification_history.jsx | 2 +- assets/js/src/newsletters/listings/standard.jsx | 2 +- assets/js/src/newsletters/listings/welcome.jsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/js/src/newsletters/listings/notification_history.jsx b/assets/js/src/newsletters/listings/notification_history.jsx index bc3324239c..1b5c8ab0f2 100644 --- a/assets/js/src/newsletters/listings/notification_history.jsx +++ b/assets/js/src/newsletters/listings/notification_history.jsx @@ -13,7 +13,7 @@ import { MailerMixin, } from 'newsletters/listings/mixins.jsx'; -const mailpoetTrackingEnabled = (!!(window.mailpoetTrackingEnabled)); +const mailpoetTrackingEnabled = (!!(window.mailpoet_tracking_enabled)); const columns = [ { diff --git a/assets/js/src/newsletters/listings/standard.jsx b/assets/js/src/newsletters/listings/standard.jsx index 5a0e3650d3..3c6643bc98 100644 --- a/assets/js/src/newsletters/listings/standard.jsx +++ b/assets/js/src/newsletters/listings/standard.jsx @@ -14,7 +14,7 @@ import { MailerMixin, } from 'newsletters/listings/mixins.jsx'; -const mailpoetTrackingEnabled = (!!(window.mailpoetTrackingEnabled)); +const mailpoetTrackingEnabled = (!!(window.mailpoet_tracking_enabled)); const messages = { onTrash: (response) => { diff --git a/assets/js/src/newsletters/listings/welcome.jsx b/assets/js/src/newsletters/listings/welcome.jsx index 9ad25a7e7b..9e5d859b47 100644 --- a/assets/js/src/newsletters/listings/welcome.jsx +++ b/assets/js/src/newsletters/listings/welcome.jsx @@ -11,9 +11,9 @@ import MailPoet from 'mailpoet'; import _ from 'underscore'; import Hooks from 'wp-js-hooks'; -const mailpoetRoles = window.mailpoetRoles || {}; -const mailpoetSegments = window.mailpoetSegments || {}; -const mailpoetTrackingEnabled = (!!(window.mailpoetTrackingEnabled)); +const mailpoetRoles = window.mailpoet_roles || {}; +const mailpoetSegments = window.mailpoet_segments || {}; +const mailpoetTrackingEnabled = (!!(window.mailpoet_tracking_enabled)); const messages = { onTrash: (response) => {