2022-01-22 03:05:05 +03:00
|
|
|
<div ...attributes>
|
2021-08-24 16:20:51 +03:00
|
|
|
<header class="gh-publishmenu-heading">Ready to
|
2021-10-21 15:07:56 +03:00
|
|
|
{{#if @canSendEmail}}
|
2021-08-24 16:20:51 +03:00
|
|
|
<GhDistributionActionSelect
|
2021-10-21 15:07:56 +03:00
|
|
|
@distributionAction={{@distributionAction}}
|
2021-08-26 22:01:26 +03:00
|
|
|
@setDistributionAction={{@setDistributionAction}}
|
2021-08-24 16:20:51 +03:00
|
|
|
/>
|
|
|
|
{{else}}
|
2021-10-21 15:07:56 +03:00
|
|
|
publish
|
2021-08-24 16:20:51 +03:00
|
|
|
{{/if}}
|
|
|
|
this {{@post.displayName}}?
|
|
|
|
</header>
|
2022-02-11 16:56:42 +03:00
|
|
|
<section class="gh-publishmenu-content {{if this.disableEmailOption "no-border"}}">
|
2021-07-09 00:44:52 +03:00
|
|
|
<div class="gh-publishmenu-section">
|
|
|
|
<div class="gh-publishmenu-radio {{if (eq @saveType "publish") "active"}}" {{on "click" (fn this.setSaveType "publish")}}>
|
|
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
|
|
|
|
<div class="gh-publishmenu-radio-content">
|
2021-10-21 15:07:56 +03:00
|
|
|
<div class="gh-publishmenu-radio-label">{{#if @emailOnly}}Send email now{{else}}Set it live now{{/if}}</div>
|
|
|
|
<div class="gh-publishmenu-radio-desc">{{#if @emailOnly}}Deliver this immediately{{else}}Publish this {{@post.displayName}} immediately{{/if}}</div>
|
2021-07-09 00:44:52 +03:00
|
|
|
</div>
|
2019-11-08 07:46:38 +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 it 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"}}
|
|
|
|
/>
|
2021-10-21 15:07:56 +03:00
|
|
|
<div class="gh-publishmenu-radio-desc">{{#if @emailOnly}}Send email at a specific time{{else}}Set automatic future publish date{{/if}}</div>
|
2021-07-09 00:44:52 +03:00
|
|
|
</div>
|
2019-11-08 07:46:38 +03:00
|
|
|
</div>
|
2017-04-11 16:39:45 +03:00
|
|
|
</div>
|
2019-11-07 11:37:26 +03:00
|
|
|
|
2021-08-24 16:20:51 +03:00
|
|
|
{{#if this.showEmailSection}}
|
2022-02-11 12:33:22 +03:00
|
|
|
<div class="gh-publishmenu-section {{if @isSendingEmailLimited "no-border"}}" {{did-insert (perform this.countTotalMembersTask)}}>
|
2021-07-09 00:44:52 +03:00
|
|
|
<div class="gh-publishmenu-email">
|
|
|
|
{{#if @isSendingEmailLimited}}
|
|
|
|
<p class="gh-box gh-box-alert">{{html-safe @sendingEmailLimitError}}</p>
|
|
|
|
{{else}}
|
2022-02-11 12:33:22 +03:00
|
|
|
<div class="gh-publishmenu-email-label">
|
|
|
|
<label class="gh-publishmenu-radio-label mb3">Send by email to</label>
|
2020-11-16 18:48:42 +03:00
|
|
|
|
2022-02-11 12:33:22 +03:00
|
|
|
{{#if this.disableEmailOption}}
|
|
|
|
<p class="gh-box gh-content-box">
|
|
|
|
<LinkTo @route="members">
|
|
|
|
Add members
|
|
|
|
</LinkTo>
|
|
|
|
to start sending newsletters!
|
|
|
|
</p>
|
|
|
|
{{else}}
|
|
|
|
<div class="form-group">
|
|
|
|
<GhMembersRecipientSelect
|
|
|
|
@filter={{@recipientsFilter}}
|
|
|
|
@onChange={{@setSendEmailWhenPublished}}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-11-26 15:20:49 +03:00
|
|
|
</div>
|
2021-07-09 00:44:52 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2019-11-26 15:20:49 +03:00
|
|
|
</div>
|
2021-07-09 00:44:52 +03:00
|
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
</div>
|