20ec481090
This continues iteration on the DAS UI by adding the ability to directly navigate to a recommendation summary by (namespaced) slug and a copy button for the direct navigation link. It includes a change to CopyButton allowing it to take a block that’s rendered within the button. It also changes some instances of multi-relationship traversal to use in-summary attributes, such as summary.jobNamespace instead of summary.job.namespace.name.
26 lines
787 B
Handlebars
26 lines
787 B
Handlebars
{{#if (eq this.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>
|
|
{{yield}}
|
|
</div>
|
|
{{else if (eq this.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>
|
|
{{yield}}
|
|
</div>
|
|
{{else}}
|
|
<AddonCopyButton
|
|
@class="button is-borderless is-small"
|
|
@clipboardText={{this.clipboardText}}
|
|
@success={{perform this.indicateSuccess}}
|
|
@error={{action (mut this.state) "error"}}
|
|
@title="Copy"
|
|
>
|
|
{{x-icon 'copy-action'}}
|
|
{{yield}}
|
|
</AddonCopyButton>
|
|
{{/if}} |