Ghost/ghost/admin/app/components/editor-labs/publish-options/email-recipients.hbs

25 lines
981 B
Handlebars
Raw Normal View History

<div class="form-group max-width mb0">
{{#if (gt @publishOptions.newsletters.length 1)}}
<div class="mb4">
<PowerSelect
@selected={{@publishOptions.newsletter}}
@options={{@publishOptions.newsletters}}
@onChange={{@publishOptions.setNewsletter}}
@triggerComponent="gh-power-select/trigger"
@triggerClass="gh-publish-newsletter-trigger"
@dropdownClass="gh-publish-newsletter-dropdown"
as |newsletter|
>
{{newsletter.name}} <span>({{newsletter.count.members}})</span>
</PowerSelect>
</div>
{{/if}}
<GhMembersRecipientSelect
@filter={{@publishOptions.recipientFilter}}
@newsletter={{@publishOptions.newsletter}}
@onChange={{@publishOptions.setRecipientFilter}}
@renderInPlace={{false}}
@dropdownClass="gh-publishmenu-newsletter-dropdown"
/>
</div>