mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
0e2d1b3afd
closes https://github.com/TryGhost/Team/issues/2011 - Gives publishers the ability to filter members based on which offer they used (redeemed) when they subscribed for a paid membership. - On the offers page, the redemption count number links to a the members page with the filter already applied making it easy to have insight on which members used the offer / coupon.
23 lines
703 B
Handlebars
23 lines
703 B
Handlebars
<GhTokenInput
|
|
@options={{this.options}}
|
|
@selected={{this.selectedOptions}}
|
|
@disabled={{or @disabled this.fetchOptionsTask.isRunning}}
|
|
@optionsComponent={{component "power-select/options"}}
|
|
@allowCreation={{false}}
|
|
@renderInPlace={{this.renderInPlace}}
|
|
@onChange={{this.setSegment}}
|
|
@class="select-members gh-offer-token-input"
|
|
@placeholder="Select an offer"
|
|
as |option|
|
|
>
|
|
<span data-test-offers-segment={{option.id}}>{{option.name}}</span>
|
|
</GhTokenInput>
|
|
|
|
{{#if @showMemberCount}}
|
|
<GhMembersSegmentCount
|
|
@segment={{@segment}}
|
|
@enforcedFilter={{@enforcedCountFilter}}
|
|
@onSegmentCountChange={{@onSegmentCountChange}}
|
|
/>
|
|
{{/if}}
|