diff --git a/app/pods/application/route.js b/app/pods/application/route.js index e3173ee..0754183 100644 --- a/app/pods/application/route.js +++ b/app/pods/application/route.js @@ -10,10 +10,6 @@ export default Ember.Route.extend(ApplicationRouteMixin, { }); }, - didTransition: function() { - this.get('flashMessages').clearMessages(); - return true; - }, + }, - } }); diff --git a/app/pods/components/custom-flash-message/template.hbs b/app/pods/components/custom-flash-message/template.hbs index 2197d70..3927cab 100644 --- a/app/pods/components/custom-flash-message/template.hbs +++ b/app/pods/components/custom-flash-message/template.hbs @@ -1 +1 @@ -{{flash.message}} +✖ {{flash.message}} diff --git a/app/pods/components/x-application/template.hbs b/app/pods/components/x-application/template.hbs index 7fd81aa..04d7ca2 100644 --- a/app/pods/components/x-application/template.hbs +++ b/app/pods/components/x-application/template.hbs @@ -44,7 +44,9 @@
{{#each flashMessages.queue as |flash|}} - {{custom-flash-message flash=flash}} + {{#flash-message flash=flash as |component flash|}} + {{custom-flash-message flash=flash}} + {{/flash-message}} {{/each}} {{yield}}