FIX: `topic-admin-menu` controller was not a proper singleton.
This commit is contained in:
parent
47573fcd99
commit
90e3242a3c
|
@ -196,6 +196,8 @@ Discourse.TopicRoute = Discourse.Route.extend({
|
|||
showExtraInfo: false
|
||||
});
|
||||
|
||||
this.controllerFor('topic-admin-menu').set('model', model);
|
||||
|
||||
this.controllerFor('composer').set('topic', model);
|
||||
Discourse.TopicTrackingState.current().trackIncoming('all');
|
||||
controller.subscribe();
|
||||
|
|
|
@ -158,5 +158,5 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if currentUser.canManageTopic}}
|
||||
{{render "topic-admin-menu" content}}
|
||||
{{render "topic-admin-menu"}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue