vault/ui/app/templates/components/identity/entity-nav.hbs
Angel Garbarino 53d34dd930
Missed some Titlelize of the h1 title is-3 (#21482)
* missed a lot

* test fix

* wip context switch

* last of the test?

* last test, please
2023-06-28 08:33:13 -06:00

47 lines
1.3 KiB
Handlebars

<PageHeader as |p|>
<p.levelLeft>
<h1 class="title is-3">
{{titleize (pluralize this.identityType)}}
</h1>
</p.levelLeft>
</PageHeader>
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
<nav class="tabs">
<ul>
<LinkTo @route="vault.cluster.access.identity.index" @model={{pluralize this.identityType}}>
{{capitalize (pluralize this.identityType)}}
</LinkTo>
<LinkTo @route="vault.cluster.access.identity.aliases.index" @model={{pluralize this.identityType}}>
Aliases
</LinkTo>
</ul>
</nav>
</div>
<Toolbar>
{{#if this.model.meta.total}}
<ToolbarFilters>
<Identity::LookupInput @type={{this.identityType}} />
</ToolbarFilters>
{{/if}}
<ToolbarActions>
{{#if (eq this.identityType "entity")}}
<ToolbarLink
@route={{"vault.cluster.access.identity.merge"}}
@model={{pluralize this.identityType}}
data-test-entity-merge-link={{true}}
>
Merge
{{pluralize this.identityType}}
</ToolbarLink>
{{/if}}
<ToolbarLink
@route="vault.cluster.access.identity.create"
@model={{pluralize this.identityType}}
@type="add"
data-test-entity-create-link={{true}}
>
Create
{{this.identityType}}
</ToolbarLink>
</ToolbarActions>
</Toolbar>