mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 03:08:35 +08:00
Add setupTopicController event
This commit is contained in:
parent
66afabcf4c
commit
8dad928557
|
@ -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 New Issue
Block a user