1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 21:50:50 +02:00

Fix alerts not dismissing

This commit is contained in:
Toby Zerner
2015-02-26 13:28:44 +10:30
parent 57f4dc6091
commit 195e0f1321
3 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ export default Ember.Controller.extend({
this.get('alerts').pushObject(message);
},
dismissAlert: function(message) {
this.get('alerts').removeObject(message);
this.get('alerts').removeObject(message.constructor);
},
clearAlerts: function() {
this.get('alerts').clear();