2018-06-12 21:06:37 +00:00
|
|
|
<PageHeader as |p|>
|
|
|
|
<p.top>
|
2021-12-17 03:44:29 +00:00
|
|
|
<KeyValueHeader
|
|
|
|
@baseKey={{this.key}}
|
|
|
|
@path="vault.cluster.secrets.backend.list"
|
|
|
|
@mode={{this.mode}}
|
|
|
|
@root={{this.root}}
|
|
|
|
@showCurrent={{true}}
|
|
|
|
/>
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.top>
|
|
|
|
<p.levelLeft>
|
|
|
|
<h1 class="title is-3">
|
2021-12-17 03:44:29 +00:00
|
|
|
{{#if (eq this.mode "create")}}
|
2019-03-29 23:40:12 +00:00
|
|
|
Create encryption key
|
2021-12-17 03:44:29 +00:00
|
|
|
{{else if (eq this.mode "edit")}}
|
2019-03-29 23:40:12 +00:00
|
|
|
Edit encryption key
|
2018-06-12 21:06:37 +00:00
|
|
|
{{else}}
|
2021-12-17 03:44:29 +00:00
|
|
|
Encryption key
|
|
|
|
<code>{{this.key.id}}</code>
|
2018-06-12 21:06:37 +00:00
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
</p.levelLeft>
|
|
|
|
</PageHeader>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{#if (eq this.mode "create")}}
|
2021-06-04 19:10:07 +00:00
|
|
|
<TransitFormCreate
|
2021-12-17 03:44:29 +00:00
|
|
|
@createOrUpdateKey={{action "createOrUpdateKey" this.mode}}
|
2021-06-04 19:10:07 +00:00
|
|
|
@setValueOnKey={{action "setValueOnKey" "exportable"}}
|
2022-02-09 16:56:49 +00:00
|
|
|
@autoRotateInvalid={{this.autoRotateInvalid}}
|
|
|
|
@handleAutoRotateChange={{action "handleAutoRotateChange"}}
|
2021-06-04 19:10:07 +00:00
|
|
|
@derivedChange={{action "derivedChange" value="target.checked"}}
|
|
|
|
@convergentEncryptionChange={{action "convergentEncryptionChange" value="target.checked"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@key={{this.key}}
|
|
|
|
@requestInFlight={{this.requestInFlight}}
|
2021-06-04 19:10:07 +00:00
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{else if (eq this.mode "edit")}}
|
2021-06-04 19:10:07 +00:00
|
|
|
<TransitFormEdit
|
2021-12-17 03:44:29 +00:00
|
|
|
@createOrUpdateKey={{action "createOrUpdateKey" this.mode}}
|
2021-06-04 19:10:07 +00:00
|
|
|
@setValueOnKey={{action "setValueOnKey" "deletionAllowed"}}
|
2022-02-09 16:56:49 +00:00
|
|
|
@autoRotateInvalid={{this.autoRotateInvalid}}
|
|
|
|
@handleAutoRotateChange={{action "handleAutoRotateChange"}}
|
2021-06-04 19:10:07 +00:00
|
|
|
@deleteKey={{action "deleteKey"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@key={{this.key}}
|
|
|
|
@requestInFlight={{this.requestInFlight}}
|
|
|
|
@capabilities={{this.capabilities}}
|
2021-06-04 19:10:07 +00:00
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{else if (eq this.mode "show")}}
|
2021-06-04 19:10:07 +00:00
|
|
|
<TransitFormShow
|
|
|
|
@refresh={{action "refresh"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@tab={{this.tab}}
|
|
|
|
@key={{this.key}}
|
|
|
|
@capabilities={{this.capabilities}}
|
|
|
|
@mode={{this.mode}}
|
|
|
|
@model={{this.model}}
|
|
|
|
@backend={{this.backend}}
|
2021-06-04 19:10:07 +00:00
|
|
|
/>
|
|
|
|
{{else}}
|
2021-12-17 03:44:29 +00:00
|
|
|
<EmptyState @title="No Transit mode selected" />
|
|
|
|
{{/if}}
|