Ghost/ghost/admin/app/components/gh-members-segment-select.hbs

20 lines
574 B
Handlebars
Raw Normal View History

<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"
@placeholder="Select a tier"
as |option|
>
{{option.name}}
</GhTokenInput>
<GhMembersSegmentCount
@segment={{@segment}}
@enforcedFilter={{@enforcedCountFilter}}
@onSegmentCountChange={{@onSegmentCountChange}}
/>