2022-05-11 19:00:20 +03:00
|
|
|
<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}}
|
2022-05-05 13:18:41 +03:00
|
|
|
|
2022-05-11 19:00:20 +03:00
|
|
|
<GhMembersRecipientSelect
|
|
|
|
@filter={{@publishOptions.recipientFilter}}
|
|
|
|
@newsletter={{@publishOptions.newsletter}}
|
|
|
|
@onChange={{@publishOptions.setRecipientFilter}}
|
|
|
|
@renderInPlace={{false}}
|
|
|
|
@dropdownClass="gh-publishmenu-newsletter-dropdown"
|
|
|
|
/>
|
|
|
|
</div>
|