mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: lookupFactory
doesn't exist on getOwner
result
This commit is contained in:
parent
e0803e1f91
commit
0dbcb4ec8a
@ -146,10 +146,9 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeBulkTemplate(w) {
|
changeBulkTemplate(w) {
|
||||||
const controllerName = w.replace('modal/', ''),
|
const controllerName = w.replace('modal/', '');
|
||||||
factory = getOwner(this).lookupFactory('controller:' + controllerName);
|
const controller = getOwner(this).lookup('controller:' + controllerName);
|
||||||
|
this.render(w, {into: 'modal/topic-bulk-actions', outlet: 'bulkOutlet', controller: controller ? controllerName : 'topic-bulk-actions'});
|
||||||
this.render(w, {into: 'modal/topic-bulk-actions', outlet: 'bulkOutlet', controller: factory ? controllerName : 'topic-bulk-actions'});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
createNewTopicViaParams(title, body, category_id, category, tags) {
|
createNewTopicViaParams(title, body, category_id, category, tags) {
|
||||||
|
Loading…
Reference in New Issue
Block a user