mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Fixed email-only button CTA in email send confirmation modal
This commit is contained in:
parent
d0457c0c32
commit
62bae57eac
@ -27,14 +27,25 @@
|
||||
<button {{on "click" this.closeModal}} class="gh-btn" data-test-button="cancel-publish-and-email">
|
||||
<span>Cancel</span>
|
||||
</button>
|
||||
<GhTaskButton
|
||||
@disabled={{this.countRecipientsTask.isRunning}}
|
||||
@buttonText={{if this.model.isScheduled "Schedule" "Publish and send"}}
|
||||
@runningText={{if this.model.isScheduled "Scheduling..." "Publishing..."}}
|
||||
@task={{this.confirmAndCheckErrorTask}}
|
||||
@class="gh-btn gh-btn-black gh-btn-icon"
|
||||
data-test-button="confirm-publish-and-email"
|
||||
/>
|
||||
{{#if this.model.isScheduled}}
|
||||
<GhTaskButton
|
||||
@disabled={{this.countRecipientsTask.isRunning}}
|
||||
@buttonText="Schedule"
|
||||
@runningText="Scheduling..."
|
||||
@task={{this.confirmAndCheckErrorTask}}
|
||||
@class="gh-btn gh-btn-black gh-btn-icon"
|
||||
data-test-button="confirm-publish-and-email"
|
||||
/>
|
||||
{{else}}
|
||||
<GhTaskButton
|
||||
@disabled={{this.countRecipientsTask.isRunning}}
|
||||
@buttonText={{if this.model.emailOnly "Send" "Publish and send"}}
|
||||
@runningText={{if this.model.emailOnly "Sending..." "Publishing..."}}
|
||||
@task={{this.confirmAndCheckErrorTask}}
|
||||
@class="gh-btn gh-btn-black gh-btn-icon"
|
||||
data-test-button="confirm-publish-and-email"
|
||||
/>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{else}}
|
||||
|
Loading…
Reference in New Issue
Block a user