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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user