{{yield}} {{#if (not loading)}}
{{#each flashMessages.queue as |flash|}} {{#flash-message flash=flash as |component flash|}} {{! flashes automatically ucfirst the type }}

{{component.flashType}}! {{#yield-slot 'notification' (block-params (lowercase component.flashType) (lowercase flash.action) flash.item )}}{{yield}}{{/yield-slot}}

{{/flash-message}} {{/each}}
{{#if authorized}} {{#yield-slot 'actions'}}{{yield}}{{/yield-slot}} {{/if}}
{{#if authorized}} {{/if}} {{#yield-slot 'header'}}{{yield}}{{/yield-slot}}
{{#if authorized}} {{#yield-slot 'toolbar'}} {{yield}} {{/yield-slot}} {{/if}}
{{/if}}
{{#if loading}} {{partial 'consul-loading'}} {{else}} {{#if (not enabled) }} {{#yield-slot 'disabled'}}{{yield}}{{/yield-slot}} {{else if (not authorized)}} {{#yield-slot 'authorization'}}{{yield}}{{/yield-slot}} {{else}} {{#yield-slot 'content'}}{{yield}}{{/yield-slot}} {{/if}} {{/if}}