1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 16:05:05 +02:00

Make discussion in view when returning to index

This commit is contained in:
Toby Zerner
2015-02-06 12:22:08 +10:30
parent e4692e3554
commit b4ea3af5b4
2 changed files with 15 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ export default Ember.Route.extend({
setupController: function(controller, discussion) {
controller.set('model', discussion);
this.controllerFor('index/index').set('lastDiscussion', discussion);
// Set up the post stream object. It needs to know about the discussion
// it's representing the posts for, and we also need to inject the Ember