Add WP user segment selection to Notification and Standard newsletters
This commit is contained in:
@@ -9,7 +9,12 @@ import {
|
||||
} from 'newsletters/scheduling/common.jsx'
|
||||
|
||||
const availableRoles = window.mailpoet_roles || {};
|
||||
const availableSegments = window.mailpoet_segments || {};
|
||||
const availableSegments = _.filter(
|
||||
window.mailpoet_segments || [],
|
||||
function (segment) {
|
||||
return segment.type === 'default';
|
||||
}
|
||||
);
|
||||
|
||||
const events = {
|
||||
name: 'event',
|
||||
@@ -171,4 +176,4 @@ const WelcomeScheduling = React.createClass({
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = WelcomeScheduling;
|
||||
module.exports = WelcomeScheduling;
|
||||
|
Reference in New Issue
Block a user