mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-24 16:11:08 +02:00
* refactor tabs-for-auth-section helper * Fill out route params in generated-item + list compoenents * Add optional route params to ListView pagination * Add backend to KV breadcrumb link route models * fix links in kv v2 pages, update kv-breadcrumbs-test * remove todo
22 lines
646 B
Handlebars
22 lines
646 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
{{#let (tabs-for-auth-section @model this.tabType @paths) as |tabs|}}
|
|
{{#if tabs.length}}
|
|
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
|
<nav class="tabs" aria-label="navigation to manage {{@model.type}}">
|
|
<ul>
|
|
{{#each tabs as |tab|}}
|
|
<li>
|
|
<LinkTo @route={{tab.route}} @models={{tab.routeParams}} data-test-auth-section-tab>
|
|
{{tab.label}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{{/if}}
|
|
{{/let}} |