2020-07-09 20:19:07 +00:00
|
|
|
{{#if (eq this.state 'success')}}
|
2019-07-15 17:14:32 +00:00
|
|
|
<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>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if (eq this.state 'error')}}
|
2019-07-15 17:14:32 +00:00
|
|
|
<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"
|
2020-07-09 20:19:07 +00:00
|
|
|
@clipboardText={{this.clipboardText}}
|
|
|
|
@success={{perform this.indicateSuccess}}
|
|
|
|
@error={{action (mut this.state) "error"}}
|
2020-06-01 19:03:56 +00:00
|
|
|
>
|
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}}
|