[UI][Bugfix] Only show back to leases button when there is a basekey (#13123) (#13125)

* 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:
Vault Automation 2026-03-18 13:28:25 -04:00 committed by GitHub
parent 0a163df630
commit c95abc09e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 12 deletions

View File

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

View File

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