Add hooks for actions row for standard and notification history newsletter types [PREMIUM-13]
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user