vault/ui/app/components/totp-edit.hbs
lane-wetmore 1e16abd3cc
UI: Update remaining copyright headers (#30504)
* update header formats for missed sidebranch files

* update more headers that did not fit format
2025-05-02 16:47:47 -05:00

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}}