in public/components/runningReindex.react.js [67:77]
renderCancelButton(progress) {
// Only display the cancel button if the reindex is running or has failed to start within
// our expected time frame (15 mins)
if (this.props.isCancelSupported && (progress >= 0 || progress < -100)) {
return (
<Button bsStyle="danger" className="pull-right" type="button" onClick={this.cancelReindex.bind(this)}>Cancel</Button>
);
} else {
return (null);
}
}