|
|
|
@ -5,7 +5,12 @@
|
|
|
|
|
{{#flash-message flash=flash as |component flash|}}
|
|
|
|
|
{{! flashes automatically ucfirst the type }}
|
|
|
|
|
|
|
|
|
|
<p data-notification class="{{if (eq component.flashType 'Success') 'success' 'error'}} notification-{{lowercase flash.action}}"><strong>{{if (eq component.flashType 'Success') 'Success!' 'Error!'}}</strong> {{#yield-slot 'notification' (block-params (lowercase component.flashType) (lowercase flash.action) flash.item )}}{{yield}}{{/yield-slot}}</p>
|
|
|
|
|
<p data-notification class="{{lowercase component.flashType}} notification-{{lowercase flash.action}}">
|
|
|
|
|
<strong>
|
|
|
|
|
{{component.flashType}}!
|
|
|
|
|
</strong>
|
|
|
|
|
{{#yield-slot 'notification' (block-params (lowercase component.flashType) (lowercase flash.action) flash.item )}}{{yield}}{{/yield-slot}}
|
|
|
|
|
</p>
|
|
|
|
|
{{/flash-message}}
|
|
|
|
|
{{/each}}
|
|
|
|
|
<div>
|
|
|
|
|