mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
23 lines
687 B
Handlebars
23 lines
687 B
Handlebars
|
<GhTokenInput
|
||
|
@options={{this.options}}
|
||
|
@selected={{this.selectedOptions}}
|
||
|
@disabled={{or @disabled this.fetchOptionsTask.isRunning}}
|
||
|
@optionsComponent="power-select/options"
|
||
|
@allowCreation={{false}}
|
||
|
@renderInPlace={{this.renderInPlace}}
|
||
|
@onChange={{this.setSegment}}
|
||
|
@class="select-members gh-tier-token-input"
|
||
|
@placeholder="Select a tier"
|
||
|
as |option|
|
||
|
>
|
||
|
<span data-test-tiers-segment={{option.name}}>{{option.name}}</span>
|
||
|
</GhTokenInput>
|
||
|
|
||
|
{{#if @showMemberCount}}
|
||
|
<GhMembersSegmentCount
|
||
|
@segment={{@segment}}
|
||
|
@enforcedFilter={{@enforcedCountFilter}}
|
||
|
@onSegmentCountChange={{@onSegmentCountChange}}
|
||
|
/>
|
||
|
{{/if}}
|