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

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();