Merge pull request #1249 from mailpoet/stats-segmentation

Stats segmentation [PREMIUM-42]
This commit is contained in:
mrcasual
2018-02-01 20:34:39 -05:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@ -804,6 +804,10 @@ const Listing = React.createClass({
if (this.props.messages !== undefined) {
messages = this.props.messages;
}
let extraActions;
if (typeof this.props.renderExtraActions === 'function') {
extraActions = this.props.renderExtraActions(this.state);
}
return (
<div>
@ -824,6 +828,7 @@ const Listing = React.createClass({
onSelectFilter={this.handleFilter}
onEmptyTrash={this.handleEmptyTrash}
/>
{extraActions}
<ListingPages
count={this.state.count}
page={this.state.page}

View File

@ -9,6 +9,7 @@ abstract class Response {
const STATUS_UNAUTHORIZED = 401;
const STATUS_FORBIDDEN = 403;
const STATUS_NOT_FOUND = 404;
const STATUS_CONFLICT = 409;
const STATUS_UNKNOWN = 500;
public $status;