mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
Add setupTopicController event
This commit is contained in:
parent
66afabcf4c
commit
8dad928557
1 changed files with 4 additions and 1 deletions
|
@ -128,10 +128,13 @@ Discourse.TopicRoute = Discourse.Route.extend({
|
|||
editingTopic: false
|
||||
});
|
||||
|
||||
Discourse.TopicRoute.trigger('setupTopicController', this);
|
||||
|
||||
this.controllerFor('header').setProperties({
|
||||
topic: model,
|
||||
showExtraInfo: false
|
||||
});
|
||||
|
||||
this.controllerFor('composer').set('topic', model);
|
||||
Discourse.TopicTrackingState.current().trackIncoming('all');
|
||||
controller.subscribe();
|
||||
|
@ -142,4 +145,4 @@ Discourse.TopicRoute = Discourse.Route.extend({
|
|||
|
||||
});
|
||||
|
||||
|
||||
RSVP.EventTarget.mixin(Discourse.TopicRoute);
|
||||
|
|
Loading…
Reference in a new issue