Files
threshold-ui/ui/desktop/app/templates/scopes/scope.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

33 lines
892 B
Handlebars

{{!
Copyright IBM Corp. 2021, 2026
SPDX-License-Identifier: BUSL-1.1
}}
{{outlet}}
{{#if this.session.isAuthenticated}}
<EmberWormhole @to='header-nav'>
<Hds::Dropdown
class='header-dropdown-button-override'
@enableCollisionDetection={{true}}
as |dd|
>
<dd.ToggleButton
@text={{this.scopes.selectedOrg.displayName}}
@icon={{if this.scopes.selectedOrg.isGlobal 'globe' 'org'}}
@color='secondary'
/>
<dd.Interactive @route='scopes.scope' @model='global'>
{{t 'titles.global'}}
</dd.Interactive>
{{#if this.scopes.orgs.length}}
<dd.Separator />
{{/if}}
{{#each this.scopes.orgs as |scope|}}
<dd.Interactive @route='scopes.scope' @model={{scope.id}}>
{{scope.displayName}}
</dd.Interactive>
{{/each}}
</Hds::Dropdown>
</EmberWormhole>
{{/if}}