open-vault/ui/app/templates/components/section-tabs.hbs
2022-03-21 14:36:21 -06:00

17 lines
553 B
Handlebars

{{#let (tabs-for-auth-section this.model this.tabType this.paths) as |tabs|}}
{{#if tabs.length}}
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
<nav class="tabs">
<ul>
{{#each tabs as |tab|}}
<li>
<LinkTo @route={{get tab.routeParams 0}} @model={{get tab.routeParams 1}} data-test-auth-section-tab={{true}}>
{{tab.label}}
</LinkTo>
</li>
{{/each}}
</ul>
</nav>
</div>
{{/if}}
{{/let}}