open-consul/ui/packages/consul-ui/app/templates/application.hbs

27 lines
655 B
Handlebars

<HeadLayout />
{{page-title 'Consul' separator=' - '}}
{{#if (env 'CONSUL_ACLS_ENABLED')}}
{{document-attrs class="has-acls"}}
{{/if}}
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
{{document-attrs class="has-nspaces"}}
{{/if}}
{{#if (not-eq router.currentRouteName 'application')}}
<HashicorpConsul
id="wrapper"
@permissions={{permissions}}
@dcs={{dcs}}
@dc={{or dc dcs.firstObject}}
@nspaces={{nspaces}}
@nspace={{or nspace nspaces.firstObject}}
@onchange={{action "reauthorize"}}
>
<Outlet
@name="application"
as |o|>
{{outlet}}
</Outlet>
<Consul::Loader class="view-loader" />
</HashicorpConsul>
{{/if}}