mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Implement discussion deletion
This commit is contained in:
@@ -104,6 +104,11 @@ export default Ember.Controller.extend({
|
||||
controller.set('meta', results.get('meta'));
|
||||
controller.set('resultsLoading', false);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
discussionRemoved: function(discussion) {
|
||||
var model = this.get('model');
|
||||
model.removeObject(model.findBy('content', discussion));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user