mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
623825f8f0
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
17 lines
603 B
Handlebars
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> |