Files
threshold-ui/ui/desktop/app/templates/scopes/scope.hbs
T

27 lines
774 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
{{outlet}}
{{#if this.session.isAuthenticated}}
<EmberWormhole @to='header-nav'>
<Hds::Dropdown @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>
<dd.Separator />
{{#each this.scopes.orgs as |scope|}}
<dd.Interactive @route='scopes.scope' @model={{scope.id}}>
{{scope.displayName}}
</dd.Interactive>
{{/each}}
</Hds::Dropdown>
</EmberWormhole>
{{/if}}