mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-17 18:35:15 +00:00
* replace buttons with tabs * update console buttons * update ssh role item buttons * remove tracked variable * more tab cleanup * remove unwrapActiveTab variable * fix button control * fix search select with modal test
67 lines
2.0 KiB
Handlebars
67 lines
2.0 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<form onsubmit={{action "doSubmit"}}>
|
|
{{#if (eq this.selectedAction "hash")}}
|
|
{{! template-lint-disable no-passed-in-event-handlers }}
|
|
<ToolHash
|
|
@onClear={{action "onClear"}}
|
|
@sum={{this.sum}}
|
|
@algorithm={{this.algorithm}}
|
|
@errors={{this.errors}}
|
|
@format={{this.format}}
|
|
@input={{this.input}}
|
|
/>
|
|
{{! template-lint-enable no-passed-in-event-handlers }}
|
|
{{else if (eq this.selectedAction "random")}}
|
|
<ToolRandom
|
|
@onClear={{action "onClear"}}
|
|
@random_bytes={{this.random_bytes}}
|
|
@errors={{this.errors}}
|
|
@format={{this.format}}
|
|
@bytes={{this.bytes}}
|
|
/>
|
|
{{else if (eq this.selectedAction "rewrap")}}
|
|
<ToolRewrap
|
|
@onClear={{action "onClear"}}
|
|
@rewrap_token={{this.rewrap_token}}
|
|
@selectedAction={{this.selectedAction}}
|
|
@errors={{this.errors}}
|
|
@token={{this.token}}
|
|
@bytes={{this.bytes}}
|
|
/>
|
|
{{else if (eq this.selectedAction "unwrap")}}
|
|
<ToolUnwrap
|
|
@onClear={{action "onClear"}}
|
|
@unwrap_data={{this.unwrap_data}}
|
|
@details={{this.details}}
|
|
@errors={{this.errors}}
|
|
@token={{this.token}}
|
|
/>
|
|
{{else if (eq this.selectedAction "lookup")}}
|
|
<ToolLookup
|
|
@creation_time={{this.creation_time}}
|
|
@creation_ttl={{this.creation_ttl}}
|
|
@creation_path={{this.creation_path}}
|
|
@expirationDate={{this.expirationDate}}
|
|
@selectedAction={{this.selectedAction}}
|
|
@token={{this.token}}
|
|
@onClear={{action "onClear"}}
|
|
@errors={{this.errors}}
|
|
/>
|
|
{{else if (eq this.selectedAction "wrap")}}
|
|
<ToolWrap
|
|
@token={{this.token}}
|
|
@selectedAction={{this.selectedAction}}
|
|
@onClear={{action "onClear"}}
|
|
@codemirrorUpdated={{action "codemirrorUpdated"}}
|
|
@updateTtl={{action "updateTtl"}}
|
|
@buttonDisabled={{this.buttonDisabled}}
|
|
@errors={{this.errors}}
|
|
/>
|
|
{{else}}
|
|
<EmptyState @title="Tool not available" />
|
|
{{/if}}
|
|
</form> |