mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
8f5e305721
closes https://github.com/TryGhost/Team/issues/738 refs https://github.com/TryGhost/Admin/pull/1972 - when we switched from the segment select back to checkboxes and label select we lost the automatic member counting which meant other parts of the publishing workflow had no counts - fixed subscribed status counts shown in publish menu - added the async count back to the confirm modal, taking full free/paid/specific query into account - added total subscribed member count back to the draft publish menu so the email options can be disabled when no subscribed members exist - fixed missing disabled styling inside `<GhMembersRecipientSelect>`
55 lines
2.8 KiB
Handlebars
55 lines
2.8 KiB
Handlebars
<header class="gh-publishmenu-heading">Ready to publish your {{this.post.displayName}}?</header>
|
|
<section class="gh-publishmenu-content">
|
|
<div class="gh-publishmenu-section">
|
|
<div class="gh-publishmenu-radio {{if (eq this.saveType "publish") "active"}}" {{action "setSaveType" "publish" on="click"}}>
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
|
|
<div class="gh-publishmenu-radio-content">
|
|
<div class="gh-publishmenu-radio-label">Set it live now</div>
|
|
<div class="gh-publishmenu-radio-desc">Publish this {{this.post.displayName}} immediately</div>
|
|
</div>
|
|
</div>
|
|
<div class="gh-publishmenu-radio {{if (eq this.saveType "schedule") "active"}}" {{action "setSaveType" "schedule" on="click"}}>
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-scheduled-option></div>
|
|
<div class="gh-publishmenu-radio-content">
|
|
<div class="gh-publishmenu-radio-label">Schedule it for later</div>
|
|
<GhDateTimePicker
|
|
@date={{this.post.publishedAtBlogDate}}
|
|
@time={{this.post.publishedAtBlogTime}}
|
|
@setDate={{action "setDate"}}
|
|
@setTime={{action "setTime"}}
|
|
@setTypedDateError={{this.setTypedDateError}}
|
|
@errors={{this.post.errors}}
|
|
@dateErrorProperty="publishedAtBlogDate"
|
|
@timeErrorProperty="publishedAtBlogTime"
|
|
@minDate={{this._minDate}}
|
|
@isActive={{eq this.saveType "schedule"}}
|
|
/>
|
|
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{#if this.canSendEmail}}
|
|
<div class="gh-publishmenu-section" {{did-insert (perform this.countTotalMembersTask)}}>
|
|
<div class="gh-publishmenu-email">
|
|
{{#if this.isSendingEmailLimited}}
|
|
<p class="gh-box gh-box-alert">{{html-safe this.sendingEmailLimitError}}</p>
|
|
{{else}}
|
|
<div class="gh-publishmenu-email-label {{if this.disableEmailOption "pe-none"}}">
|
|
<label class="gh-publishmenu-radio-label mb3 {{if this.disableEmailOption "midgrey"}}">Send by email to</label>
|
|
|
|
<div class="form-group">
|
|
<GhMembersRecipientSelect
|
|
@filter={{this.recipientsFilter}}
|
|
@onChange={{this.setSendEmailWhenPublished}}
|
|
@disabled={{this.disableEmailOption}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</section>
|
|
|