mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
* add paths route * WIP copy secret path component * wip component * ad v1 * use each-in to iterate over info table row * update copy * add commands to kv paths page * add comments * WIP tests * finish tests * remove version, address comments and use path arg directly remove secret * update copy * fix typo for perms * remove destructuring, that was confusing * add changelog * add secure protocal
20 lines
532 B
Handlebars
20 lines
532 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<div data-test-code-snippet class="code-snippet-container" ...attributes>
|
|
<code class="text-grey-lightest">
|
|
{{@codeBlock}}
|
|
</code>
|
|
{{! replace with Hds::Copy::Button }}
|
|
<CopyButton
|
|
class="code-snippet-copy-button"
|
|
@clipboardText={{or @clipboardCode @codeBlock}}
|
|
@buttonType="button"
|
|
@success={{action (set-flash-message "Code copied!")}}
|
|
>
|
|
Copy
|
|
<Icon @name="clipboard-copy" aria-label="Copy" />
|
|
</CopyButton>
|
|
</div> |