2022-08-22 16:33:18 +03:00
|
|
|
{{#if @selected}}
|
|
|
|
<button class="gh-btn" {{on "click" (fn @onChange null)}} type="button">
|
|
|
|
<span class="gh-btn-label-green">
|
|
|
|
Clear search ×
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
{{else}}
|
|
|
|
<PowerSelect
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@search={{perform this.searchUsersTask}}
|
|
|
|
@selected={{@selected}}
|
|
|
|
@onChange={{@onChange}}
|
|
|
|
@triggerClass="gh-member-filter-search-trigger"
|
|
|
|
@dropdownClass="gh-member-filter-search-dropdown"
|
2022-09-24 18:00:05 +03:00
|
|
|
@triggerComponent={{component "gh-input-with-select/trigger"}}
|
2022-09-05 17:01:36 +03:00
|
|
|
@placeholder="Search staff"
|
2022-08-22 16:33:18 +03:00
|
|
|
@extra={{hash showSearchMessage=false}}
|
|
|
|
as |member|
|
|
|
|
>
|
|
|
|
{{#if member.name}}<strong>{{member.name}}</strong>{{/if}}
|
|
|
|
<span>{{member.email}}</span>
|
|
|
|
</PowerSelect>
|
|
|
|
{{/if}}
|