FIX: Header was sometimes being shown twice in a topic

This commit is contained in:
Robin Ward 2013-06-11 13:31:07 -04:00
parent 0cbf7c2417
commit ffde23f09f
1 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,10 @@ Discourse.TopicRoute = Discourse.Route.extend({
setupController: function(controller, model) {
controller.set('model', model);
this.controllerFor('header').set('topic', model);
this.controllerFor('header').setProperties({
topic: model,
showExtraInfo: false
});
this.controllerFor('composer').set('topic', model);
Discourse.TopicTrackingState.current().trackIncoming('all');
controller.subscribe();