mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
756f5094b4
refs https://github.com/TryGhost/Team/issues/1597 - added "Save" button to editor for scheduled and published posts when any edits have been made - shows "Saving..." then "Saved" for 3 seconds before disappearing - replaces "Saving..." indicator shown in status bar on the left - added `showIcon` argument to `<GhTaskButton>` so it can be used for text style buttons - changed editor status behaviour to only show "Scheduled" by default with the full text shown on hover
14 lines
811 B
Handlebars
14 lines
811 B
Handlebars
{{#if (has-block)}}
|
|
{{yield (hash
|
|
isIdle=this.isIdle
|
|
isRunning=this.isRunning
|
|
isSuccess=this.isSuccess
|
|
isFailure=this.isFailure
|
|
)}}
|
|
{{else}}
|
|
{{#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}}
|
|
{{#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">{{#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}}
|
|
{{/if}}
|