open-nomad/ui/app/templates/components/popover-menu.hbs
Phil Renaud 99185e2d8f
[ui, compliance] Remove the newline after .hbs copyright headers (#16861)
* Remove the newline after .hbs copyright headers

* Trying with the whitespace control char
2023-04-14 13:08:13 -04:00

32 lines
758 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<BasicDropdown
@horizontalPosition="right"
@disabled={{this.isDisabled}}
@onOpen={{action
(queue (action (mut this.isOpen) true) (action this.capture))
}}
@onClose={{action (mut this.isOpen) false}}
as |dd|
>
<dd.Trigger
data-test-popover-trigger
class={{concat
"popover-trigger button is-primary "
this.triggerClass
(if this.isDisabled " is-disabled")
}}
aria-label={{this.tooltip}}
{{on "keyup" (action "openOnArrowDown" dd)}}
>
{{this.label}}
{{x-icon "chevron-down" class="is-text"}}
</dd.Trigger>
<dd.Content data-test-popover-menu class="popover-content">
{{yield dd}}
</dd.Content>
</BasicDropdown>