github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/templates/components/copy-button.hbs (about) 1 {{#if (eq state 'success')}} 2 <div class='button is-borderless is-small is-static'> 3 <span class="tooltip text-center always-active" role="tooltip" aria-label="Copied!"> 4 {{x-icon 'copy-success'}} 5 </span> 6 </div> 7 {{else if (eq state 'error')}} 8 <div class='button is-borderless is-small is-static'> 9 <span class="tooltip text-center" role="tooltip" aria-label="Error copying"> 10 {{x-icon 'alert-triangle'}} 11 </span> 12 </div> 13 {{else}} 14 {{#addon-copy-button 15 class='button is-borderless is-small' 16 clipboardText=clipboardText 17 success=(perform indicateSuccess) 18 error=(action (mut state) 'error') 19 }} 20 {{x-icon 'copy-action'}} 21 {{/addon-copy-button}} 22 {{/if}}