vault/ui/app/components/b64-toggle.hbs
Vault Automation 0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* license: update headers to IBM Corp.
* `make proto`
* update offset because source file changed

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2025-10-21 15:20:20 -06:00

17 lines
320 B
Handlebars

{{!
Copyright IBM Corp. 2016, 2025
SPDX-License-Identifier: BUSL-1.1
}}
<button
type="button"
class="button b64-toggle {{if @isInput 'is-input' 'is-textarea'}}"
{{on "click" this.handleClick}}
...attributes
>
{{#if this.isBase64}}
Decode from base64
{{else}}
Encode to base64
{{/if}}
</button>