mirror of https://github.com/hashicorp/consul
22 lines
523 B
Handlebars
22 lines
523 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
{{#let @components.MenuItem as |MenuItem|}}
|
|
<MenuItem
|
|
class={{if this.selected 'is-active'}}
|
|
{{did-insert this.connect}}
|
|
{{did-insert (set this "selected" @selected)}}
|
|
{{did-update (set this "selected" @selected)}}
|
|
{{will-destroy this.disconnect}}
|
|
...attributes
|
|
@onclick={{action @onclick this}}
|
|
@selected={{this.selected}}
|
|
>
|
|
<BlockSlot @name="label">
|
|
{{yield}}
|
|
</BlockSlot>
|
|
</MenuItem>
|
|
{{/let}}
|