2019-07-15 17:14:32 +00:00
|
|
|
{{#if (eq state 'success')}}
|
|
|
|
<div class='button is-borderless is-small is-static'>
|
|
|
|
<span class="tooltip text-center always-active" role="tooltip" aria-label="Copied!">
|
|
|
|
{{x-icon 'copy-success'}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{else if (eq state 'error')}}
|
|
|
|
<div class='button is-borderless is-small is-static'>
|
|
|
|
<span class="tooltip text-center" role="tooltip" aria-label="Error copying">
|
|
|
|
{{x-icon 'alert-triangle'}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<AddonCopyButton
|
|
|
|
@class="button is-borderless is-small"
|
|
|
|
@clipboardText={{clipboardText}}
|
|
|
|
@success={{perform indicateSuccess}}
|
|
|
|
@error={{action (mut state) "error"}}
|
|
|
|
>
|
2019-07-15 17:14:32 +00:00
|
|
|
{{x-icon 'copy-action'}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</AddonCopyButton>
|
2019-07-15 17:14:32 +00:00
|
|
|
{{/if}}
|