discourse/app/assets/javascripts/select-kit/addon/templates/components/selected-name.hbs
Jarek Radosz 16ea7ab248
DEV: Run angle-brackets codemod (#17286)
Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
2022-06-30 12:30:50 +02:00

22 lines
669 B
Handlebars

{{#if selectKit.options.showFullTitle}}
<div lang={{lang}} title={{title}} data-value={{value}} data-name={{name}} role="option" class="select-kit-selected-name selected-name choice">
{{#if item.icon}}
{{d-icon item.icon}}
{{/if}}
<span class="name">
{{label}}
</span>
{{#if shouldDisplayClearableButton}}
<DButton @class="btn-clear" @icon="times" @action={{selectKit.deselect}} @actionParam={{item}} @ariaLabel="clear_input" />
{{/if}}
</div>
{{else}}
{{#if item.icon}}
<div role="option" lang={{lang}} class="select-kit-selected-name selected-name choice">
{{d-icon item.icon}}
</div>
{{/if}}
{{/if}}