mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
73b6687c5b
* Add %panel CSS component * Deprecate old menu-panel component * Various smallish tweaks to disclosure-menu * Move all menus in the app chrome to use new DisclosureMenu * Follow up CSS to move all app chrome menus to new components * Don't prevent default any events from anchors * Add a tick to click steps
29 lines
543 B
Handlebars
29 lines
543 B
Handlebars
{{yield}}
|
|
{{#let (hash
|
|
change=(action "change")
|
|
) as |api|}}
|
|
<div
|
|
class={{class-map
|
|
(array 'menu-panel')
|
|
(array 'menu-panel-deprecated')
|
|
(array position)
|
|
(array isConfirmation 'confirmation')
|
|
}}
|
|
{{did-insert (action 'connect')}}
|
|
>
|
|
<YieldSlot @name="controls">
|
|
{{yield api}}
|
|
</YieldSlot>
|
|
{{#yield-slot name="header"}}
|
|
<div>
|
|
{{yield api}}
|
|
</div>
|
|
{{else}}
|
|
{{/yield-slot}}
|
|
<ul role="menu" ...attributes>
|
|
<YieldSlot @name="menu">
|
|
{{yield api}}
|
|
</YieldSlot>
|
|
</ul>
|
|
</div>
|
|
{{/let}} |