open-vault/ui/app/templates/components/status-menu.hbs
Noelle Daley 1e58c46ca9
Ui/dismiss status menu click (#7337)
* dismiss status menu on click instead of hover

* allow redirect on 204
2019-08-19 14:36:22 -07:00

13 lines
612 B
Handlebars

{{#basic-dropdown horizontalPosition="auto-left" verticalPosition="below" renderInPlace=media.isMobile as |d|}}
{{#d.trigger tagName=(if (eq type "replication") "span" "button") class=(if (eq type "replication") "" "button is-transparent")}}
<Icon @glyph={{glyphName}} @size="l" aria-label={{ariaLabel}} />
<div class="status-menu-label">
{{label}}
</div>
<Chevron @direction="down" class="has-text-white is-status-chevron"/>
{{/d.trigger}}
{{#d.content class=(concat "status-menu-content status-menu-content-" type)}}
{{partial partialName}}
{{/d.content}}
{{/basic-dropdown}}