vault/ui/lib/core/addon/components/replication-header.hbs
Vault Automation 0079d343d8
[UI] VAULT-41960 resilience and recovery sidebar (#12056) (#12170)
* VAULT-41960 resiliance and recovery sidebar

* Add breadcrumbs and fix failing tests

* Update link to be external

* Update mode title

* Fix tests

* More tests

* Passing tests!

* Fix sidebar highlight issue

* Update remaining breadcrumbs and fix tests

* Fix recovery tests

* Add resilience and recovery tests

* Sidebar clients rearrangement

* Dasherize and address feedback

* Add copyright headers

* Move to snapshots component for integration test

* Create recovery route file in cluster

* Update ts file and create resilience route

* Remove unused comment

* Add display-nav-item helper

* remove extra nav instantiation

* Add copywrite header

* Address feedback!

* Add more tests!

* Remaining helper tests

* last resilience recovery test

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2026-02-04 12:06:25 -08:00

56 lines
No EOL
1.5 KiB
Handlebars

{{!
Copyright IBM Corp. 2016, 2025
SPDX-License-Identifier: BUSL-1.1
}}
<Page::Header @title={{@title}}>
<:breadcrumbs>
{{#unless @isSecondary}}
<Page::Breadcrumbs
@breadcrumbs={{array (hash label="Vault" route="vault" icon="vault" linkExternal=true) (hash label=@title)}}
/>
{{/unless}}
</:breadcrumbs>
<:badges>
{{#if @data.anyReplicationEnabled}}
<Hds::Badge
@text={{if @isSecondary "secondary" "primary"}}
data-test-badge={{if @isSecondary "secondary" "primary"}}
/>
{{#if @secondaryId}}
<Hds::Badge @text={{@secondaryId}} data-test-badge={{@secondaryId}} />
{{/if}}
{{/if}}
</:badges>
</Page::Header>
{{#if @showTabs}}
<div class="tabs-container box is-bottomless is-fullwidth is-paddingless has-bottom-margin-l" data-test-tabs>
<nav class="tabs">
{{#if @isSummaryDashboard}}
<ul>
<li class="is-active">
<LinkToExternal @route="replication">Summary</LinkToExternal>
</li>
</ul>
{{else}}
<ul>
<li>
<LinkTo @route="vault.cluster.replication-dr-promote.details" data-test-link-to="Details">
Details
</LinkTo>
</li>
<li>
<LinkTo
@route="vault.cluster.replication-dr-promote"
@current-when="vault.cluster.replication-dr-promote.index"
data-test-link-to="Manage"
>
Manage
</LinkTo>
</li>
</ul>
{{/if}}
</nav>
</div>
{{/if}}