Add hooks for actions row for standard and notification history newsletter types [PREMIUM-13]

This commit is contained in:
stoletniy
2017-05-31 13:27:17 +03:00
parent 478359f9ff
commit 4f722ecd8a
2 changed files with 8 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import { Router, Link } from 'react-router'
import classNames from 'classnames'
import jQuery from 'jquery'
import MailPoet from 'mailpoet'
import Hooks from 'wp-js-hooks'
import Listing from 'listing/listing.jsx'
import ListingTabs from 'newsletters/listings/tabs.jsx'
@@ -40,7 +41,7 @@ const columns = [
}
];
const newsletter_actions = [
let newsletter_actions = [
{
name: 'view',
link: function(newsletter) {
@@ -53,6 +54,8 @@ const newsletter_actions = [
}
];
newsletter_actions = Hooks.applyFilters('mailpoet_newsletters_listings_notification_history_actions', newsletter_actions);
const NewsletterListNotificationHistory = React.createClass({
mixins: [ QueueMixin, StatisticsMixin, MailerMixin ],
renderSentDate: function(newsletter) {

View File

@@ -3,6 +3,7 @@ import { Router, Link } from 'react-router'
import classNames from 'classnames'
import jQuery from 'jquery'
import MailPoet from 'mailpoet'
import Hooks from 'wp-js-hooks'
import Listing from 'listing/listing.jsx'
import ListingTabs from 'newsletters/listings/tabs.jsx'
@@ -98,7 +99,7 @@ const bulk_actions = [
}
];
const newsletter_actions = [
let newsletter_actions = [
{
name: 'view',
link: function(newsletter) {
@@ -152,6 +153,8 @@ const newsletter_actions = [
}
];
newsletter_actions = Hooks.applyFilters('mailpoet_newsletters_listings_standard_actions', newsletter_actions);
const NewsletterListStandard = React.createClass({
mixins: [ QueueMixin, StatisticsMixin, MailerMixin ],
renderItem: function(newsletter, actions, meta) {