Files
threshold-ui/ui/desktop/app/templates/scopes/scope.hbs
T
hashicorp-copywrite[bot]andCameron Perera 3d610427d0 [COMPLIANCE] Add Copyright and License Headers (#1617)
* [COMPLIANCE] Add Copyright and License Headers

* chore: 🤖 update Copyright headers to satisfy our lint rules

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
2023-03-01 09:39:41 -06:00

32 lines
858 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
{{outlet}}
{{#if this.session.isAuthenticated}}
<EmberWormhole @to='header-nav'>
<Rose::Dropdown
@text={{this.scopes.selectedOrg.displayName}}
@icon={{if
this.scopes.selectedOrg.isGlobal
'flight-icons/svg/globe-16'
'flight-icons/svg/org-16'
}}
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.scopes.orgs as |scope|}}
<dropdown.link @route='scopes.scope' @model={{scope.id}}>
{{scope.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
</EmberWormhole>
{{/if}}