mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 12:51:24 +08:00
Refactor: Back all modals by controllers
This commit is contained in:
@ -155,9 +155,9 @@ Discourse = Ember.Application.createWithMixins({
|
||||
},
|
||||
|
||||
authenticationComplete: function(options) {
|
||||
// TODO, how to dispatch this to the view without the container?
|
||||
var loginView = Discourse.__container__.lookup('controller:modal').get('currentView');
|
||||
return loginView.authenticationComplete(options);
|
||||
// TODO, how to dispatch this to the controller without the container?
|
||||
var loginController = Discourse.__container__.lookup('controller:login');
|
||||
return loginController.authenticationComplete(options);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user