2021-05-12 14:27:15 +03:00
|
|
|
{{#if (has-block)}}
|
2017-03-07 20:28:52 +03:00
|
|
|
{{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}}
|
2022-04-19 22:42:47 +03:00
|
|
|
{{#if this.isRunning}}<span data-test-task-button-state="running">{{svg-jar "spinner" class="gh-icon-spinner"}}{{this.runningText}}</span>{{/if}}
|
|
|
|
{{#if this.isIdle}}<span data-test-task-button-state="idle">{{this.buttonText}}</span>{{/if}}
|
|
|
|
{{#if this.isSuccess}}<span {{did-insert this.handleReset}} data-test-task-button-state="success">{{svg-jar "check-circle"}} {{this.successText}}</span>{{/if}}
|
|
|
|
{{#if this.isFailure}}<span data-test-task-button-state="failure">{{svg-jar "retry"}} {{this.failureText}}</span>{{/if}}
|
2017-03-07 20:28:52 +03:00
|
|
|
{{/if}}
|