mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 20:26:28 +08:00
f2048eeb4c
Followup to f5e8e73
.
This switches the placeholder label to the existing string "optional
tags" and only shows it if there are no items picked.
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
33 lines
917 B
Handlebars
33 lines
917 B
Handlebars
<div class="select-kit-header-wrapper">
|
|
{{#each this.icons as |icon|}}
|
|
{{d-icon icon}}
|
|
{{/each}}
|
|
|
|
{{#if this.selectKit.options.useHeaderFilter}}
|
|
<div class="select-kit-header--filter">
|
|
{{#if this.selectedContent.length}}
|
|
{{#each this.selectedContent as |item|}}
|
|
{{component
|
|
this.selectKit.options.selectedChoiceComponent
|
|
item=item
|
|
selectKit=this.selectKit
|
|
}}
|
|
{{/each}}
|
|
{{/if}}
|
|
|
|
{{component
|
|
this.selectKit.options.filterComponent
|
|
selectKit=this.selectKit
|
|
id=(concat this.selectKit.uniqueID "-filter")
|
|
hidePlaceholderWithSelection=true
|
|
}}
|
|
</div>
|
|
{{else}}
|
|
<MultiSelect::FormatSelectedContent
|
|
@content={{or this.selectedContent this.selectKit.noneItem}}
|
|
@selectKit={{this.selectKit}}
|
|
/>
|
|
|
|
{{d-icon this.caretIcon class="caret-icon"}}
|
|
{{/if}}
|
|
</div> |