discourse/app/assets/javascripts/select-kit/templates/components/selected-name.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
485 B
Handlebars
Raw Normal View History

{{#if selectKit.options.showFullTitle}}
{{#if item.icon}}
{{d-icon item.icon}}
{{/if}}
<span class="name">
{{label}}
</span>
{{#if selectKit.options.clearOnClick}}
{{d-icon "times"}}
{{else}}
{{#if shouldDisplayClearableButton}}
{{d-button
class="btn-clear"
icon="times"
action=selectKit.deselect
actionParam=item
}}
{{/if}}
{{/if}}
{{else}}
{{#if item.icon}}
{{d-icon item.icon}}
{{/if}}
{{/if}}