open-vault/ui/app/templates/components/hover-copy-button.hbs
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

18 lines
555 B
Handlebars

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