mirror of https://github.com/status-im/consul.git
16 lines
576 B
Handlebars
16 lines
576 B
Handlebars
{{#feedback-dialog type='inline'}}
|
|
{{#block-slot 'action' as |success error|}}
|
|
{{#copy-button success=(action success) error=(action error) clipboardText=copy title=(concat 'Copy ' name ' to the clipboard')}}{{#if hasBlock }}{{yield}}{{else}}{{value}}{{/if}}{{/copy-button}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'success' as |transition|}}
|
|
<p class={{transition}}>
|
|
Copied {{name}}!
|
|
</p>
|
|
{{/block-slot}}
|
|
{{#block-slot 'error' as |transition|}}
|
|
<p class={{transition}}>
|
|
Sorry, something went wrong!
|
|
</p>
|
|
{{/block-slot}}
|
|
{{/feedback-dialog}}
|