open-vault/ui/app/templates/components/hover-copy-button.hbs
Matthew Irish d93c92e4f5
UI - guard page redesign (#4779)
* add NavHeader component
* use NavHeader in SplashPage component and application.hbs
* let download button take a block
* add RadialProgress component
* use RadialProgress in ShamirFlow component
* style up the RadialProgress component
* update ember-basic-dropdown, ember-basic-dropdown-hover
* rework operation token generation workflow
* directly depend on ember-maybe-in-element
2018-06-26 16:35:47 -05:00

18 lines
583 B
Handlebars

<ToolTip @renderInPlace={{true}} @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>