Ghost/ghost/admin/app/components/gh-distribution-action-select.hbs
Kevin Ansfield 623825f8f0 🐛 Fixed scheduled send-only post switching to publish+send when rescheduling
closes https://github.com/TryGhost/Ghost/issues/14354

When setting/cleaning up the publish menu state we were incorrectly reverting to the default "publish & send" state when a post was already set to be email-only. This resulted in an unexpected and non-obvious switch to "publish & send" when re-scheduling a scheduled email-only post.

- updated the publish menu setup and cleanup routines to account for scheduled, email-only posts
- fixed the header in the publish menu to say "sent" rather than "published" when an email-only post is scheduled
2022-03-31 17:11:06 +01:00

17 lines
603 B
Handlebars

<span class="gh-publishmenu-select" ...attributes>
<PowerSelect
@options={{this.availablePublishActions}}
@renderInPlace={{true}}
@selected={{this.distributionValue}}
@onChange={{this.setDistributionAction}}
@searchEnabled={{false}}
@id="publish-action"
@name="publish-action"
@triggerComponent="gh-power-select/trigger"
@triggerClass="ember-power-select-inline"
@dropdownClass="gh-publishmenu-select-dropdown"
as |availablePublishAction|
>
{{availablePublishAction.name}}
</PowerSelect>
</span>