mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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) {
|
setupController: function(controller, model) {
|
||||||
controller.set('model', 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);
|
this.controllerFor('composer').set('topic', model);
|
||||||
Discourse.TopicTrackingState.current().trackIncoming('all');
|
Discourse.TopicTrackingState.current().trackIncoming('all');
|
||||||
controller.subscribe();
|
controller.subscribe();
|
||||||
|
Loading…
Reference in New Issue
Block a user