1
0
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:
Toby Zerner
2015-02-12 14:35:40 +10:30
parent 36787bcf45
commit 2bd5471699
4 changed files with 26 additions and 4 deletions

View File

@@ -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));
}
}
});