FIX: `topic-admin-menu` controller was not a proper singleton.

This commit is contained in:
Robin Ward 2014-10-06 12:27:12 -04:00
parent 47573fcd99
commit 90e3242a3c
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -158,5 +158,5 @@
{{/if}}
{{#if currentUser.canManageTopic}}
{{render "topic-admin-menu" content}}
{{render "topic-admin-menu"}}
{{/if}}