mirror of
https://github.com/discourse/discourse.git
synced 2024-12-20 08:43:43 +08:00
371bbadb92
* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
22 lines
739 B
Handlebars
22 lines
739 B
Handlebars
{{#if this.selectKit.options.showFullTitle}}
|
|
<div lang={{this.lang}} title={{this.title}} data-value={{this.value}} data-name={{this.name}} role="option" class="select-kit-selected-name selected-name choice">
|
|
{{#if this.item.icon}}
|
|
{{d-icon this.item.icon}}
|
|
{{/if}}
|
|
|
|
<span class="name">
|
|
{{this.label}}
|
|
</span>
|
|
|
|
{{#if this.shouldDisplayClearableButton}}
|
|
<DButton @class="btn-clear" @icon="times" @action={{this.selectKit.deselect}} @actionParam={{this.item}} @ariaLabel="clear_input" />
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
{{#if this.item.icon}}
|
|
<div role="option" lang={{this.lang}} class="select-kit-selected-name selected-name choice">
|
|
{{d-icon this.item.icon}}
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|