2998deac50
This is mostly a direct application of the ember-angle-brackets-codemod. I manually restored newlines in multi-line component invocations, usually preserving file line length except for now-non-positional link-to @route. I needed to rename task to taskState in some cases to avoid Ember Concurrency naming conflicts.
22 lines
702 B
Handlebars
22 lines
702 B
Handlebars
{{#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}}
|
|
<AddonCopyButton
|
|
@class="button is-borderless is-small"
|
|
@clipboardText={{clipboardText}}
|
|
@success={{perform indicateSuccess}}
|
|
@error={{action (mut state) "error"}}
|
|
>
|
|
{{x-icon 'copy-action'}}
|
|
</AddonCopyButton>
|
|
{{/if}} |