Merge pull request #1249 from mailpoet/stats-segmentation
Stats segmentation [PREMIUM-42]
This commit is contained in:
@ -804,6 +804,10 @@ const Listing = React.createClass({
|
|||||||
if (this.props.messages !== undefined) {
|
if (this.props.messages !== undefined) {
|
||||||
messages = this.props.messages;
|
messages = this.props.messages;
|
||||||
}
|
}
|
||||||
|
let extraActions;
|
||||||
|
if (typeof this.props.renderExtraActions === 'function') {
|
||||||
|
extraActions = this.props.renderExtraActions(this.state);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
@ -824,6 +828,7 @@ const Listing = React.createClass({
|
|||||||
onSelectFilter={this.handleFilter}
|
onSelectFilter={this.handleFilter}
|
||||||
onEmptyTrash={this.handleEmptyTrash}
|
onEmptyTrash={this.handleEmptyTrash}
|
||||||
/>
|
/>
|
||||||
|
{extraActions}
|
||||||
<ListingPages
|
<ListingPages
|
||||||
count={this.state.count}
|
count={this.state.count}
|
||||||
page={this.state.page}
|
page={this.state.page}
|
||||||
|
@ -9,6 +9,7 @@ abstract class Response {
|
|||||||
const STATUS_UNAUTHORIZED = 401;
|
const STATUS_UNAUTHORIZED = 401;
|
||||||
const STATUS_FORBIDDEN = 403;
|
const STATUS_FORBIDDEN = 403;
|
||||||
const STATUS_NOT_FOUND = 404;
|
const STATUS_NOT_FOUND = 404;
|
||||||
|
const STATUS_CONFLICT = 409;
|
||||||
const STATUS_UNKNOWN = 500;
|
const STATUS_UNKNOWN = 500;
|
||||||
|
|
||||||
public $status;
|
public $status;
|
||||||
|
Reference in New Issue
Block a user