FIX: Header was sometimes being shown twice in a topic
This commit is contained in:
parent
0cbf7c2417
commit
ffde23f09f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue