Skip to content
Snippets Groups Projects
Commit 87d745b1 authored by Andres Gomez Urquiza's avatar Andres Gomez Urquiza
Browse files

don't show success style when skipping test pulse

parent e425258f
No related branches found
No related tags found
No related merge requests found
......@@ -82,13 +82,13 @@ export default class ActionButton extends Component {
});
return (
<button className={buttonStateClasses} onClick={this.onClick}>
<button className={this.props.overrideStyle ? cx('Button', 'Button--waiting') : buttonStateClasses} onClick={this.onClick}>
{ this.state.active ?
// TODO: loading spinner
this.props.activeText
: this.state.result === "success" ?
<span>
<Icon name='check' size={12} />
{this.props.overrideStyle ? null : <Icon name='check' size={12} /> }
<span className="ml1">{this.props.successText}</span>
</span>
: this.state.result === "failed" ?
......
......@@ -201,7 +201,7 @@ export default class PulseEditChannels extends Component {
activeText="Sending…"
failedText="Sending failed"
successText={ this.willPulseSkip.bind(this)() ? "Didn’t send because the Pulse has no results." : "Pulse sent"}
overrideStyle={ this.willPulseSkip.bind(this)() }
/>
</div>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment