2023-03-01 09:39:41 -06:00
|
|
|
{{!
|
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
}}
|
|
|
|
|
|
2021-02-02 17:12:47 -05:00
|
|
|
<span
|
|
|
|
|
id={{this.id}}
|
2021-05-11 15:39:59 -04:00
|
|
|
class='copyable'
|
2021-02-02 17:12:47 -05:00
|
|
|
{{did-insert this.register}}
|
2021-03-05 17:27:00 -05:00
|
|
|
{{will-destroy this.tearDown}}
|
2021-02-02 17:12:47 -05:00
|
|
|
>
|
|
|
|
|
|
|
|
|
|
{{#if this.copied}}
|
2021-05-11 15:39:59 -04:00
|
|
|
<mark class='copyable-content'>
|
2021-02-02 17:12:47 -05:00
|
|
|
{{yield}}
|
|
|
|
|
</mark>
|
|
|
|
|
{{else}}
|
2021-05-11 15:39:59 -04:00
|
|
|
<span class='copyable-content'>
|
2021-02-02 17:12:47 -05:00
|
|
|
{{yield}}
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if this.isClipboardLibrarySupported}}
|
|
|
|
|
<Rose::Button
|
|
|
|
|
id={{this.copyableButtonId}}
|
|
|
|
|
aria-describedby={{this.id}}
|
2021-05-11 15:39:59 -04:00
|
|
|
class='copyable-button'
|
|
|
|
|
@style='ghost'
|
2021-02-02 17:12:47 -05:00
|
|
|
@iconOnly={{if this.copied this.successIcon this.actionIcon}}
|
|
|
|
|
title={{if this.copied this.successText this.actionText}}
|
|
|
|
|
>
|
|
|
|
|
{{this.actionText}}
|
|
|
|
|
</Rose::Button>
|
|
|
|
|
{{/if}}
|
2022-10-06 11:41:12 -04:00
|
|
|
</span>
|