2022-05-05 19:05:47 +03:00
|
|
|
<div class="gh-publishmenu-send-to-option">
|
|
|
|
<p>
|
2022-05-06 15:54:15 +03:00
|
|
|
Free subscribers
|
2022-05-05 19:05:47 +03:00
|
|
|
{{#let (members-count-fetcher query=(hash filter=(concat @newsletter.recipientFilter "+status:free"))) as |countFetcher|}}
|
2022-05-11 20:56:23 +03:00
|
|
|
{{#if (not (is-empty countFetcher.count))}}
|
|
|
|
<span class="gh-publishmenu-emailcount" data-test-email-count="free-members">({{countFetcher.count}})</span>
|
|
|
|
{{/if}}
|
2022-05-05 19:05:47 +03:00
|
|
|
{{/let}}
|
|
|
|
</p>
|
2022-05-06 10:06:45 +03:00
|
|
|
<div class="for-switch small {{if @disabled "disabled"}}">
|
2021-05-21 20:22:01 +03:00
|
|
|
<label class="switch" for="send-email-to-free">
|
|
|
|
<input
|
|
|
|
id="send-email-to-free"
|
|
|
|
type="checkbox"
|
|
|
|
class="gh-input post-settings-featured"
|
|
|
|
checked={{this.isFreeChecked}}
|
|
|
|
disabled={{@disabled}}
|
2022-03-11 14:06:13 +03:00
|
|
|
aria-label="Free members toggle"
|
|
|
|
{{on "change" (fn this.toggleFilter "status:free")}}
|
2021-05-21 20:22:01 +03:00
|
|
|
data-test-checkbox="free-members"
|
|
|
|
>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{#if this.isPaidAvailable}}
|
|
|
|
<div class="gh-publishmenu-send-to-option">
|
2022-05-05 19:05:47 +03:00
|
|
|
<p>
|
2022-05-06 15:54:15 +03:00
|
|
|
Paid subscribers
|
2022-05-05 19:05:47 +03:00
|
|
|
{{#let (members-count-fetcher query=(hash filter=(concat @newsletter.recipientFilter "+status:-free"))) as |countFetcher|}}
|
2022-05-11 20:56:23 +03:00
|
|
|
{{#if (not (is-empty countFetcher.count))}}
|
|
|
|
<span class="gh-publishmenu-emailcount" data-test-email-count="paid-members">({{countFetcher.count}})</span>
|
|
|
|
{{/if}}
|
2022-05-05 19:05:47 +03:00
|
|
|
{{/let}}
|
|
|
|
</p>
|
2022-05-06 10:06:45 +03:00
|
|
|
<div class="for-switch small {{if @disabled "disabled"}}">
|
2021-05-21 20:22:01 +03:00
|
|
|
<label class="switch" for="send-email-to-paid">
|
|
|
|
<input
|
|
|
|
id="send-email-to-paid"
|
|
|
|
type="checkbox"
|
|
|
|
class="gh-input post-settings-featured"
|
|
|
|
checked={{this.isPaidChecked}}
|
|
|
|
disabled={{@disabled}}
|
2022-03-11 14:06:13 +03:00
|
|
|
aria-label="Paid members toggle"
|
|
|
|
{{on "change" (fn this.toggleFilter "status:-free")}}
|
2021-05-21 20:22:01 +03:00
|
|
|
data-test-checkbox="paid-members"
|
|
|
|
>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if this.specificOptions}}
|
|
|
|
<div class="gh-publishmenu-send-to-option">
|
|
|
|
<p>Specific people</p>
|
2022-05-06 10:06:45 +03:00
|
|
|
<div class="for-switch small {{if @disabled "disabled"}}">
|
2022-03-11 14:06:13 +03:00
|
|
|
<label class="switch" for="send-email-to-specific">
|
2021-05-21 20:22:01 +03:00
|
|
|
<input
|
2022-03-11 14:06:13 +03:00
|
|
|
id="send-email-to-specific"
|
2021-05-21 20:22:01 +03:00
|
|
|
type="checkbox"
|
|
|
|
class="gh-input post-settings-featured"
|
|
|
|
checked={{this.isSpecificChecked}}
|
|
|
|
disabled={{@disabled}}
|
2022-03-11 14:06:13 +03:00
|
|
|
aria-label="Specific people toggle"
|
|
|
|
{{on "change" this.toggleSpecificFilter}}
|
2021-05-21 20:22:01 +03:00
|
|
|
data-test-checkbox="paid-members"
|
|
|
|
>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{#if this.isSpecificChecked}}
|
|
|
|
<GhTokenInput
|
2021-08-23 13:45:17 +03:00
|
|
|
@class="select-members select-members-recipient"
|
2022-05-05 13:18:41 +03:00
|
|
|
@dropdownClass={{@dropdownClass}}
|
2021-05-21 20:22:01 +03:00
|
|
|
@options={{this.specificOptions}}
|
|
|
|
@selected={{this.selectedSpecificOptions}}
|
|
|
|
@disabled={{@disabled}}
|
|
|
|
@searchMessage="All labels selected"
|
|
|
|
@optionsComponent="power-select/options"
|
|
|
|
@allowCreation={{false}}
|
2022-05-05 13:18:41 +03:00
|
|
|
@renderInPlace={{this.renderInPlace}}
|
2021-05-21 20:22:01 +03:00
|
|
|
@onChange={{this.selectSpecificOptions}}
|
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{option.name}}
|
|
|
|
</GhTokenInput>
|
|
|
|
{{/if}}
|
2021-08-23 13:45:17 +03:00
|
|
|
{{/if}}
|