2017-03-07 20:28:52 +03:00
|
|
|
{{#if hasBlock}}
|
|
|
|
{{yield (hash
|
2019-12-13 17:20:29 +03:00
|
|
|
isIdle=this.isIdle
|
|
|
|
isRunning=this.isRunning
|
|
|
|
isSuccess=this.isSuccess
|
|
|
|
isFailure=this.isFailure
|
2017-03-07 20:28:52 +03:00
|
|
|
)}}
|
2017-01-19 14:20:33 +03:00
|
|
|
{{else}}
|
2020-05-11 13:37:35 +03:00
|
|
|
{{#if this.isRunning}}<span>{{svg-jar "spinner" class="gh-icon-spinner"}}{{this.runningText}}</span>{{/if}}
|
|
|
|
{{#if this.isIdle}}<span>{{this.buttonText}}</span>{{/if}}
|
|
|
|
{{#if this.isSuccess}}<span {{did-insert this.handleReset}}>{{svg-jar "check-circle"}} {{this.successText}}</span>{{/if}}
|
|
|
|
{{#if this.isFailure}}<span>{{svg-jar "retry"}} {{this.failureText}}</span>{{/if}}
|
2017-03-07 20:28:52 +03:00
|
|
|
{{/if}}
|