mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
* updates code-snippet component styling and adds it to ldap library accounts view * adds comment back in to code-snippet template
22 lines
627 B
Handlebars
22 lines
627 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<div
|
|
class="has-padding-s has-background-gray-900 border-radius-4 is-flex-between is-flex-center"
|
|
data-test-code-snippet
|
|
...attributes
|
|
>
|
|
<code class="has-text-white is-size-7">{{@codeBlock}}</code>
|
|
{{! replace with Hds::Copy::Button }}
|
|
<CopyButton
|
|
class="button is-compact is-transparent has-text-grey-light"
|
|
@clipboardText={{or @clipboardCode @codeBlock}}
|
|
@buttonType="button"
|
|
@success={{action (set-flash-message "Code copied!")}}
|
|
>
|
|
Copy
|
|
<Icon @name="clipboard-copy" aria-label="Copy" />
|
|
</CopyButton>
|
|
</div> |