mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
63b1e4e8ad
no issue - in many places we were passing a string as an argument to a `<PowerSelect>` related component that referred to a component name, that was throwing deprecation warnings because those strings were used dynamically with `{{component}}` later on which isn't statically analyzable - switched to passing a component explicitly with `{{component}}` - https://github.com/embroider-build/embroider/blob/main/REPLACING-COMPONENT-HELPER.md#when-youre-passing-a-component-to-someone-else
24 lines
799 B
Handlebars
24 lines
799 B
Handlebars
{{#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"
|
|
@triggerComponent={{component "gh-input-with-select/trigger"}}
|
|
@placeholder="Search staff"
|
|
@extra={{hash showSearchMessage=false}}
|
|
as |member|
|
|
>
|
|
{{#if member.name}}<strong>{{member.name}}</strong>{{/if}}
|
|
<span>{{member.email}}</span>
|
|
</PowerSelect>
|
|
{{/if}}
|