{{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 name='notification' params=(block-params (lowercase component.flashType) (lowercase flash.action) flash.item )}}{{yield}}{{/yield-slot}}

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