open-consul/ui-v2/app/templates/application.hbs
John Cowen 27a220216f ui: ConsulLoader component (#7719)
Moves the `consul-loader` partial to a template-only component
2020-05-12 17:14:35 +00:00

16 lines
484 B
Handlebars

<HeadLayout />
{{title 'Consul' separator=' - '}}
{{#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}}>
{{#if (not loading)}}
{{outlet}}
{{else}}
<AppView @class="loading show">
<BlockSlot @name="content">
<ConsulLoader />
</BlockSlot>
</AppView>
{{/if}}
</HashicorpConsul>
{{/if}}