mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 05:23:04 +00:00
bb95738321
Adds a 'status' for the filtering/searching in the UI, without this its not super clear that you are filtering a recordset due to the menu selections being hidden once closed. You can also use the pills in this status view to delete individual filters.
37 lines
816 B
Handlebars
37 lines
816 B
Handlebars
<PopoverMenu
|
|
class="popover-select"
|
|
...attributes
|
|
@position={{or position "left"}}
|
|
as |components menu|
|
|
>
|
|
{{yield}}
|
|
{{#let
|
|
(component 'popover-select/optgroup' components=components)
|
|
(component 'popover-select/option'
|
|
select=this components=components
|
|
onclick=(pipe
|
|
(action "click")
|
|
(if multiple (noop) menu.toggle)
|
|
)
|
|
)
|
|
as |Optgroup Option|
|
|
}}
|
|
<BlockSlot @name="trigger">
|
|
<YieldSlot @name="selected">
|
|
{{yield (hash
|
|
Optgroup=Optgroup
|
|
Option=Option
|
|
)}}
|
|
</YieldSlot>
|
|
</BlockSlot>
|
|
<BlockSlot @name="menu">
|
|
<YieldSlot @name="options">
|
|
{{yield (hash
|
|
Optgroup=Optgroup
|
|
Option=Option
|
|
)}}
|
|
</YieldSlot>
|
|
</BlockSlot>
|
|
{{/let}}
|
|
</PopoverMenu>
|