2022-01-22 03:05:05 +03:00
|
|
|
<div data-test-publishmenu-scheduled="true" ...attributes>
|
2022-03-31 19:10:49 +03:00
|
|
|
<header class="gh-publishmenu-heading" data-test-publishmenu-header>Will be {{if @emailOnly "sent" "published"}} in {{this.timeToPublished}}</header>
|
2021-07-09 00:44:52 +03:00
|
|
|
<div class="gh-publishmenu-content">
|
|
|
|
<section class="gh-publishmenu-section">
|
|
|
|
<div class="gh-publishmenu-radio {{if (eq @saveType "draft") "active"}}" {{on "click" (fn this.setSaveType "draft")}}>
|
|
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-draft-option></div>
|
|
|
|
<div class="gh-publishmenu-radio-content">
|
|
|
|
<div class="gh-publishmenu-radio-label">Revert to draft</div>
|
|
|
|
<div class="gh-publishmenu-radio-desc">Do not publish</div>
|
|
|
|
</div>
|
2019-11-08 12:46:03 +03:00
|
|
|
</div>
|
2021-07-09 00:44:52 +03:00
|
|
|
<div class="gh-publishmenu-radio {{if (eq @saveType "schedule") "active"}}" {{on "click" (fn this.setSaveType "schedule")}}>
|
|
|
|
<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 for later</div>
|
|
|
|
<GhDateTimePicker
|
|
|
|
@date={{@post.publishedAtBlogDate}}
|
|
|
|
@time={{@post.publishedAtBlogTime}}
|
|
|
|
@setDate={{this.setDate}}
|
|
|
|
@setTime={{this.setTime}}
|
|
|
|
@setTypedDateError={{@setTypedDateError}}
|
|
|
|
@errors={{@post.errors}}
|
|
|
|
@dateErrorProperty="publishedAtBlogDate"
|
|
|
|
@timeErrorProperty="publishedAtBlogTime"
|
|
|
|
@minDate={{this.minDate}}
|
|
|
|
@isActive={{eq @saveType "schedule"}}
|
|
|
|
/>
|
|
|
|
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
|
|
|
|
</div>
|
2019-11-08 12:46:03 +03:00
|
|
|
</div>
|
2021-07-09 00:44:52 +03:00
|
|
|
</section>
|
|
|
|
{{#if @canSendEmail}}
|
|
|
|
<section class="gh-publishmenu-section">
|
|
|
|
<div class="gh-publishmenu-email">
|
|
|
|
{{#if @isSendingEmailLimited}}
|
|
|
|
<p>{{html-safe @sendingEmailLimitError}}</p>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-publishmenu-email-label pe-none">
|
|
|
|
<label class="gh-publishmenu-radio-label mb3 midgrey">Send by email to</label>
|
2021-05-07 12:02:19 +03:00
|
|
|
|
2022-04-27 12:49:55 +03:00
|
|
|
{{#if (and (feature "multipleNewsletters") (gt @availableNewsletters.length 1))}}
|
|
|
|
<div class="mb3">
|
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedNewsletter}}
|
|
|
|
@options={{@availableNewsletters}}
|
|
|
|
@onChange={{noop}}
|
|
|
|
@triggerComponent="gh-power-select/trigger"
|
|
|
|
@triggerClass="gh-publishmenu-newsletter-trigger"
|
|
|
|
@dropdownClass="gh-publishmenu-newsletter-dropdown"
|
|
|
|
@renderInPlace={{true}}
|
|
|
|
@disabled={{true}}
|
|
|
|
as |newsletter|
|
|
|
|
>
|
|
|
|
{{newsletter.name}}
|
|
|
|
</PowerSelect>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2021-07-09 00:44:52 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<GhMembersRecipientSelect
|
|
|
|
@filter={{@recipientsFilter}}
|
|
|
|
@disabled={{true}}
|
|
|
|
/>
|
|
|
|
</div>
|
2019-11-26 15:20:49 +03:00
|
|
|
</div>
|
2021-07-09 00:44:52 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|