Files
threshold-ui/ui/admin/app/components/header-nav/index.hbs
T
Priya Patel 93a57f26ee Replace Rose::Icon with HDS::Icon (#2762)
* refactor: 💡 rose icons with hds icons

* fix: 🐛 remove child selector for h2

* fix: 🐛 removed unwanted changes

* fix: 🐛 remove unncessary change

* refactor: 💡 rose icon for rose components

* fix: 🐛 default size for doc-link, updated tests, removed TODO

* fix: 🐛 update doc-link test
2025-04-25 13:18:23 -07:00

40 lines
980 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
<Rose::Dropdown
@text={{if
this.scope.org.isGlobal
(t 'titles.global')
this.scope.org.displayName
}}
@icon={{if this.scope.org.isGlobal 'globe' 'org'}}
as |dropdown|
>
{{#if this.session.data.authenticated.isGlobal}}
<dropdown.link @route='scopes.scope' @model='global'>
{{t 'titles.global'}}
</dropdown.link>
<dropdown.separator />
{{/if}}
{{#each this.scope.orgsList as |org|}}
<dropdown.link @route='scopes.scope' @model={{org.id}}>
{{org.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
{{#if this.scope.project}}
<Rose::Dropdown
@text={{this.scope.project.displayName}}
@icon='grid'
as |dropdown|
>
{{#each this.scope.projectsList as |project|}}
<dropdown.link @route='scopes.scope' @model={{project.id}}>
{{project.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
{{/if}}