mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
67505f838c
closes https://github.com/TryGhost/Team/issues/1585 - adds newsletter select, free/paid checkboxes, and specific label select to the email recipients area in publish flow - updated `PublishOptions` - `willEmail` getter now takes into account the recipient filter so when free+paid+specific are all unchecked the flow corresponds to email not being sent - save task passes through the real recipient filter - added `fullRecipientFilter` for use in count fetchers so the selected newsletter is taken into account whilst we use `recipientFilter` as the main filter value - fixed issues with dropdowns being cut off - `{{liquid-if}}` uses `overflow: hidden` to make it's animation work, this means any popups that are larger than the expanded option size are cut off - switched away from rendering the selects inline so they aren't limited by parent container size - fixed `z-index` issues to they appear on top of the modal
32 lines
1.2 KiB
Handlebars
32 lines
1.2 KiB
Handlebars
{{#if (eq @publishOptions.totalMemberCount 0)}}
|
|
<p class="gh-box gh-content-box">
|
|
<LinkTo @route="members">Add members</LinkTo>
|
|
to start sending newsletters!
|
|
</p>
|
|
{{else}}
|
|
<div class="form-group">
|
|
{{#if (gt @publishOptions.newsletters.length 1)}}
|
|
<div class="mb3">
|
|
Newsletter:
|
|
<PowerSelect
|
|
@selected={{@publishOptions.newsletter}}
|
|
@options={{@publishOptions.newsletters}}
|
|
@onChange={{@publishOptions.setNewsletter}}
|
|
@triggerComponent="gh-power-select/trigger"
|
|
@triggerClass="gh-publishmenu-newsletter-trigger"
|
|
@dropdownClass="gh-publishmenu-newsletter-dropdown"
|
|
as |newsletter|
|
|
>
|
|
{{newsletter.name}}
|
|
</PowerSelect>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<GhMembersRecipientSelect
|
|
@filter={{@publishOptions.recipientFilter}}
|
|
@onChange={{@publishOptions.setRecipientFilter}}
|
|
@renderInPlace={{false}}
|
|
@dropdownClass="gh-publishmenu-newsletter-dropdown"
|
|
/>
|
|
</div>
|
|
{{/if}} |