Files
threshold-ui/ui/admin/app/components/header-nav/index.hbs
T
hashicc 72fa6d86c4 Update copyright headers (#3161)
* chore: 🤖 remove hashi copyright .github headers and update config

* chore: 🤖 remove remaining hashicorp copyright headers

* Add missing copyright headers
2026-02-03 12:08:35 -05:00

41 lines
1.1 KiB
Handlebars

{{!
Copyright IBM Corp. 2021, 2026
SPDX-License-Identifier: BUSL-1.1
}}
<Hds::Dropdown @enableCollisionDetection={{true}} as |dd|>
<dd.ToggleButton
@text={{if
this.scope.org.isGlobal
(t 'titles.global')
this.scope.org.displayName
}}
@icon={{if this.scope.org.isGlobal 'globe' 'org'}}
@color='secondary'
/>
{{#if this.session.data.authenticated.isGlobal}}
<dd.Interactive @route='scopes.scope' @model='global'>
{{t 'titles.global'}}
</dd.Interactive>
{{/if}}
{{#each this.scope.orgsList as |org|}}
<dd.Interactive @route='scopes.scope' @model={{org.id}}>
{{org.displayName}}
</dd.Interactive>
{{/each}}
</Hds::Dropdown>
{{#if this.scope.project}}
<Hds::Dropdown as |dd|>
<dd.ToggleButton
@icon='grid'
@text={{this.scope.project.displayName}}
@color='secondary'
/>
{{#each this.scope.projectsList as |project|}}
<dd.Interactive @route='scopes.scope' @model={{project.id}}>
{{project.displayName}}
</dd.Interactive>
{{/each}}
</Hds::Dropdown>
{{/if}}