Update flash message
This commit is contained in:
parent
2343913f91
commit
6ce2fbe83b
3 changed files with 5 additions and 7 deletions
|
@ -10,10 +10,6 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
|
|||
});
|
||||
},
|
||||
|
||||
didTransition: function() {
|
||||
this.get('flashMessages').clearMessages();
|
||||
return true;
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{flash.message}}
|
||||
✖ {{flash.message}}
|
||||
|
|
|
@ -44,7 +44,9 @@
|
|||
|
||||
<div class="view-wrap">
|
||||
{{#each flashMessages.queue as |flash|}}
|
||||
{{#flash-message flash=flash as |component flash|}}
|
||||
{{custom-flash-message flash=flash}}
|
||||
{{/flash-message}}
|
||||
{{/each}}
|
||||
{{yield}}
|
||||
</div>
|
||||
|
|
Reference in a new issue