vault/ui/lib/kmip/addon/components/kmip-breadcrumb.hbs
Matthew Irish 970975cfa4
[UI] - Colocated components in addons (#31413)
* core: run colocated components codemod

* kmip: run colocated components codemod

* replication: run colocated components codemod

* core: remove manual setting of templates with setComponentTemplate

* run prettier
2025-08-04 08:02:27 -07:00

29 lines
924 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
<Hds::Breadcrumb>
<Hds::Breadcrumb::Item @text="Secrets" @route="secrets" @isRouteExternal={{true}} data-test-breadcrumb="Secrets" />
{{#if this.shouldShowPath}}
<Hds::Breadcrumb::Item
@text={{this.secretMountPath.currentPath}}
@route="scopes.index"
data-test-breadcrumb={{this.secretMountPath.currentPath}}
/>
{{/if}}
{{#if @scope}}
<Hds::Breadcrumb::Item @text={{@scope}} @route="scope.roles" @model={{@scope}} data-test-breadcrumb={{@scope}} />
{{/if}}
{{#if @role}}
<Hds::Breadcrumb::Item
@text={{@role}}
@route="credentials.index"
@models={{array @scope @role}}
data-test-breadcrumb={{@role}}
/>
{{/if}}
{{#if @currentRoute}}
<Hds::Breadcrumb::Item @text={{@currentRoute}} @current={{true}} data-test-breadcrumb={{@currentRoute}} />
{{/if}}
</Hds::Breadcrumb>