mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
107ed0e1f3
refs https://github.com/TryGhost/Team/issues/947 - With email-only posts there's a new "send" status that deserved it's own publishing action in the post publish menu. With with addition the post ended up having few more publishing states: publish, send, and publish&send. In addition to all this there's a "schedule" option. An addition of the "send" only select option there became a need to persist the "email_only" flag when the option was changed in the publish menu. Such persistance was not done before from the publishing menu and led a whole chain of additional methods being passed down from publishmenu component all the way down to distribution-action-select component - At this moment only a happy path work properly when selecting one of the publishing options and publishing. More states will need to be handled for scheduled, unblished, etc. states of the post
17 lines
589 B
Handlebars
17 lines
589 B
Handlebars
<span class="gh-publishmenu-select">
|
|
<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> |