{{#if (has-block)}}
{{yield (hash
isIdle=this.isIdle
isRunning=this.isRunning
isSuccess=this.isSuccess
isFailure=this.isFailure
)}}
{{else}}
{{#if this.isRunning}}{{#if this.showIcon}}{{svg-jar "spinner" class="gh-icon-spinner"}} {{/if}}{{this.runningText}}{{/if}}
{{#if this.isIdle}}{{this.buttonText}}{{/if}}
{{#if this.isSuccess}}{{#if this.showIcon}}{{svg-jar "check-circle"}} {{/if}}{{this.successText}}{{/if}}
{{#if this.isFailure}}{{#if this.showIcon}}{{svg-jar "retry"}} {{/if}}{{this.failureText}}{{/if}}
{{/if}}