mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03:00
74b08e19b8
no issue See https://github.com/emberjs/rfcs/blob/master/text/0689-deprecate-has-block.md
14 lines
577 B
Handlebars
14 lines
577 B
Handlebars
{{#if (has-block)}}
|
|
{{yield (hash
|
|
isIdle=this.isIdle
|
|
isRunning=this.isRunning
|
|
isSuccess=this.isSuccess
|
|
isFailure=this.isFailure
|
|
)}}
|
|
{{else}}
|
|
{{#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}}
|
|
{{/if}}
|