mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Avoids duplicate notification / transition
no ref - Let application.js handle transition after setup - Remove duplicate loading of server notifications
This commit is contained in:
parent
a6c205ac53
commit
b26e0ec669
3 changed files with 0 additions and 12 deletions
|
@ -35,9 +35,6 @@ var SetupController = Ember.ObjectController.extend(ValidationEngine, {
|
|||
self.get('session').authenticate('simple-auth-authenticator:oauth2-password-grant', {
|
||||
identification: self.get('email'),
|
||||
password: self.get('password')
|
||||
}).then(function () {
|
||||
self.send('signedIn');
|
||||
self.transitionToRoute(SimpleAuth.Configuration.routeAfterAuthentication);
|
||||
});
|
||||
}, function (resp) {
|
||||
self.toggleProperty('submitting');
|
||||
|
|
|
@ -36,9 +36,6 @@ var SignupController = Ember.ObjectController.extend(ValidationEngine, {
|
|||
self.get('session').authenticate('simple-auth-authenticator:oauth2-password-grant', {
|
||||
identification: self.get('email'),
|
||||
password: self.get('password')
|
||||
}).then(function () {
|
||||
self.send('signedIn');
|
||||
self.transitionToRoute(SimpleAuth.Configuration.routeAfterAuthentication);
|
||||
});
|
||||
}, function (resp) {
|
||||
self.toggleProperty('submitting');
|
||||
|
|
|
@ -6,12 +6,6 @@ var ApplicationRoute = Ember.Route.extend(SimpleAuth.ApplicationRouteMixin, Shor
|
|||
'esc': 'closePopups'
|
||||
},
|
||||
|
||||
setupController: function () {
|
||||
Ember.run.next(this, function () {
|
||||
this.send('loadServerNotifications');
|
||||
});
|
||||
},
|
||||
|
||||
actions: {
|
||||
closePopups: function () {
|
||||
this.get('popover').closePopovers();
|
||||
|
|
Loading…
Add table
Reference in a new issue