open-nomad/ui/app/templates/components/popover-menu.hbs
Buck Doyle 244157786a
Add explicit this to templates (#8388)
This is the result of running the no-implicit-this-codemod, some manual fixes,
and the addition of a linting rule to prevent future ambiguity.
2020-07-09 15:19:07 -05:00

19 lines
648 B
Handlebars

<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 "keydown" (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>