open-vault/ui/app/templates/components/hover-copy-button.hbs
Matthew Irish f38a50b6b2
UI - unauthed login methods (#4854)
* fetch auth methods when going to the auth route and pass them to the auth form component

* add boolean editType for form-fields

* look in the data hash in the serializer

* remove renderInPlace for info-tooltips as it does something goofy with widths

* add new fields for auth methods

* fix console refresh command on routes that use lazyPaginatedQuery

* add wrapped_token param that logs you in via the token backend and show other backends if your list contains supported ones

* handle casing when looking up supported backends

* change listingVisibility to match the new API

* move wrapped_token up to the vault route level so it works from the app root
2018-07-05 13:28:12 -05:00

18 lines
559 B
Handlebars

<ToolTip @onClose={{action (mut tooltipText) "Copy"}} as |T|>
<T.trigger data-test-tooltip-trigger tabindex=false>
<CopyButton
data-test-hover-copy-button
@clipboardText={{copyValue}}
@class="copy-button button is-compact is-transparent"
@success={{action (mut tooltipText) "Copied!"}}
>
<ICon @glyph="copy" aria-hidden="true" @size=16 />
</CopyButton>
</T.trigger>
<T.content @class="tool-tip">
<div class="box" data-test-hover-copy-tooltip-text>
{{tooltipText}}
</div>
</T.content>
</ToolTip>