mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-25 02:31:59 -05:00
Updated button label logic to match different states
This commit is contained in:
parent
bcef562206
commit
a021553203
1 changed files with 31 additions and 9 deletions
|
@ -59,14 +59,36 @@
|
|||
{{/if}}
|
||||
|
||||
<div class="gh-publish-cta">
|
||||
<GhTaskButton
|
||||
@task={{this.confirmTask}}
|
||||
@buttonText={{this.confirmButtonText}}
|
||||
@runningText={{if @publishOptions.willOnlyEmail "Sending" "Publishing"}}
|
||||
@successText={{if @publishOptions.willOnlyEmail "Sent" "Published"}}
|
||||
@class="gh-btn gh-btn-large"
|
||||
@idleClass="gh-btn-pulse"
|
||||
@showIcon={{false}}
|
||||
/>
|
||||
{{#if @publishOptions.willOnlyEmail}}
|
||||
<GhTaskButton
|
||||
@task={{this.confirmTask}}
|
||||
@buttonText={{this.confirmButtonText}}
|
||||
@runningText="Sending"
|
||||
@successText="Sent"
|
||||
@class="gh-btn gh-btn-large"
|
||||
@idleClass="gh-btn-pulse"
|
||||
@showIcon={{false}}
|
||||
/>
|
||||
{{else if this.willEmail}}
|
||||
<GhTaskButton
|
||||
@task={{this.confirmTask}}
|
||||
@buttonText={{this.confirmButtonText}}
|
||||
@runningText="Publishing & sending"
|
||||
@successText="Published & sent"
|
||||
@class="gh-btn gh-btn-large"
|
||||
@idleClass="gh-btn-pulse"
|
||||
@showIcon={{false}}
|
||||
/>
|
||||
{{else}}
|
||||
<GhTaskButton
|
||||
@task={{this.confirmTask}}
|
||||
@buttonText={{this.confirmButtonText}}
|
||||
@runningText="Publishing"
|
||||
@successText="Published"
|
||||
@class="gh-btn gh-btn-large"
|
||||
@idleClass="gh-btn-pulse"
|
||||
@showIcon={{false}}
|
||||
/>
|
||||
{{/if}}
|
||||
<button type="button" class="gh-btn gh-btn-link gh-btn-large gh-publish-cta-secondary" {{on "click" @cancel}}>Back to settings</button>
|
||||
</div>
|
Loading…
Add table
Reference in a new issue