Files
threshold-ui/ui/admin/app/components/header-nav/index.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

40 lines
992 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<Rose::Dropdown
@text={{this.scope.org.displayName}}
@icon={{if
this.scope.org.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.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='flight-icons/svg/grid-16'
as |dropdown|
>
{{#each this.scope.projectsList as |project|}}
<dropdown.link @route='scopes.scope' @model={{project.id}}>
{{project.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
{{/if}}