{{yield}} {{#if (not loading)}} {{#each flashMessages.queue as |flash|}} {{#flash-message flash=flash as |component flash|}} {{! flashes automatically ucfirst the type }} {{if (eq component.flashType 'Success') 'Success!' 'Error!'}} {{#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}} {{#yield-slot 'breadcrumbs'}}{{yield}}{{/yield-slot}} {{/if}} {{#yield-slot 'header'}}{{yield}}{{/yield-slot}} {{#if authorized}} {{#yield-slot 'toolbar'}} {{yield}} {{/yield-slot}} {{/if}} {{/if}}
{{if (eq component.flashType 'Success') 'Success!' 'Error!'}} {{#yield-slot 'notification' (block-params (lowercase component.flashType) (lowercase flash.action) flash.item )}}{{yield}}{{/yield-slot}}