{{settings.appName}}
{{page-header-environment
scope=scope
isOwner=isOwner
switchProject=(action switchProject)
switchCluster=(action switchCluster)
}}
{{#each navTree as |item|}}
{{#if item.submenu.length}}
{{! Has a submenu }}
-
{{#if item.route}}
{{#link-to-as-attrs
item.route
models=item.ctx
qp=item.qp
moreCurrentWhen=item.moreCurrentWhen
activeParent=true
class="dropdown-toggle"
role="button"
aria-haspopup="true"
aria-expanded="false"
}}
{{maybe-t item.localizedLabel item.label}}
{{/link-to-as-attrs}}
{{else}}
{{maybe-t item.localizedLabel item.label}}
{{/if}}
{{else if item.route}}
{{! No submenu }}
-
{{#link-to-as-attrs
item.route
models=item.ctx
qp=item.qp
activeParent=true
moreCurrentWhen=item.moreCurrentWhen
class="nav-link"
}}
{{maybe-t item.localizedLabel item.label}}
{{/link-to-as-attrs}}
{{else}}
{{! Just a label }}
{{/if}}
{{/each}}