mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 07:01:09 +02:00
* update header formats for missed sidebranch files * update more headers that did not fit format
43 lines
1.0 KiB
Handlebars
43 lines
1.0 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<PageHeader as |p|>
|
|
<p.top>
|
|
<KeyValueHeader
|
|
@baseKey={{@model}}
|
|
@path="vault.cluster.secrets.backend.list"
|
|
@mode={{@mode}}
|
|
@root={{@root}}
|
|
@showCurrent={{true}}
|
|
/>
|
|
</p.top>
|
|
<p.levelLeft>
|
|
<h1 class="title is-3" data-test-secret-header>
|
|
{{#if (eq @mode "create")}}
|
|
Create a TOTP key
|
|
{{else}}
|
|
TOTP key
|
|
<code>{{@model.id}}</code>
|
|
{{/if}}
|
|
</h1>
|
|
</p.levelLeft>
|
|
</PageHeader>
|
|
|
|
{{#if (eq @mode "show")}}
|
|
<Totp::KeyDetails @model={{@model}} @onDelete={{this.deleteKey}} />
|
|
{{else if (eq @mode "create")}}
|
|
{{#if this.hasGenerated}}
|
|
<Totp::KeyQrCode @model={{@model}} @onReset={{this.reset}} />
|
|
{{else}}
|
|
<Totp::KeyCreate
|
|
@onSubmit={{this.createKey}}
|
|
@model={{@model}}
|
|
@defaultKeyFormFields={{this.defaultKeyFormFields}}
|
|
@groups={{this.groups}}
|
|
@modelValidations={{this.modelValidations}}
|
|
@invalidFormAlert={{this.invalidFormAlert}}
|
|
/>
|
|
{{/if}}
|
|
{{/if}} |