mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 11:41:58 +08:00
1. Use `this.` instead of `{{action}}` where applicable
2. Use `{{fn}}` instead of `@actionParam` where applicable
3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded
4. Remove `btn` class (it's added automatically to all DButtons)
5. Remove `type="button"` (it's the default)
6. Use `concat-class` helper
21 lines
No EOL
508 B
Handlebars
Vendored
21 lines
No EOL
508 B
Handlebars
Vendored
<div class="select-kit-header-wrapper">
|
|
{{#each this.icons as |icon|}} {{d-icon icon}} {{/each}}
|
|
|
|
{{component
|
|
this.selectKit.options.selectedNameComponent
|
|
tabindex=this.tabindex
|
|
item=this.selectedContent
|
|
selectKit=this.selectKit
|
|
}}
|
|
|
|
{{#if this.shouldDisplayClearableButton}}
|
|
<DButton
|
|
@icon="times"
|
|
@action={{this.selectKit.onClearSelection}}
|
|
@ariaLabel="clear_input"
|
|
class="btn-clear"
|
|
/>
|
|
{{/if}}
|
|
|
|
{{d-icon this.caretIcon class="caret-icon"}}
|
|
</div> |