mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
* Only show back to leases button when there is a basekey * Use if statement Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
This commit is contained in:
parent
0a163df630
commit
c95abc09e6
2 changed files with 16 additions and 12 deletions
|
|
@ -18,12 +18,14 @@
|
|||
</:breadcrumbs>
|
||||
|
||||
<:actions>
|
||||
<Hds::Button
|
||||
@text="Back to Leases"
|
||||
@color="secondary"
|
||||
@route="vault.cluster.access.leases.list-root"
|
||||
data-test-button="Back to Leases"
|
||||
/>
|
||||
{{#if this.baseKey.id}}
|
||||
<Hds::Button
|
||||
@text="Back to Leases"
|
||||
@color="secondary"
|
||||
@route="vault.cluster.access.leases.list-root"
|
||||
data-test-button="Back to Leases"
|
||||
/>
|
||||
{{/if}}
|
||||
</:actions>
|
||||
</Page::Header>
|
||||
|
||||
|
|
|
|||
|
|
@ -14,12 +14,14 @@
|
|||
/>
|
||||
</:breadcrumbs>
|
||||
<:actions>
|
||||
<Hds::Button
|
||||
@text="Back to Leases"
|
||||
@color="secondary"
|
||||
@route="vault.cluster.access.leases"
|
||||
data-test-button="Back to Leases"
|
||||
/>
|
||||
{{#if this.baseKey.id}}
|
||||
<Hds::Button
|
||||
@text="Back to Leases"
|
||||
@color="secondary"
|
||||
@route="vault.cluster.access.leases"
|
||||
data-test-button="Back to Leases"
|
||||
/>
|
||||
{{/if}}
|
||||
</:actions>
|
||||
</Page::Header>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue