147f5dace4
* refactor copy button to show success with tooltip * remove ember-cli-flash * update expected bundlesize
32 lines
No EOL
859 B
Handlebars
32 lines
No EOL
859 B
Handlebars
<div class="box poll-link cr-poll-link">
|
|
<p>{{t "poll.share.title"}}</p>
|
|
<p class="link cr-poll-link__link">
|
|
<small>
|
|
<code class="cr-poll-link__url" data-test-poll-url>{{this.pollUrl}}</code>
|
|
</small>
|
|
<CopyButton
|
|
@text={{this.pollUrl}}
|
|
@onSuccess={{this.showCopySuccessMessage}}
|
|
class="btn btn-secondary cr-poll-link__copy-btn btn-sm"
|
|
data-test-button="copy-link"
|
|
>
|
|
{{t "poll.link.copy-label"}}
|
|
<span
|
|
class="oi oi-clipboard"
|
|
title={{t "poll.link.copy-label"}}
|
|
aria-hidden="true"
|
|
></span>
|
|
|
|
<BsTooltip
|
|
@placement="bottom"
|
|
@triggerEvents="click"
|
|
data-test-tooltip="copied"
|
|
>
|
|
{{t "poll.link.copied"}}
|
|
</BsTooltip>
|
|
</CopyButton>
|
|
</p>
|
|
<small class="text-muted">
|
|
{{t "poll.share.notice"}}
|
|
</small>
|
|
</div> |