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