0
Fork 0
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:
Fabian Becker 2014-07-31 14:18:44 +02:00
parent a6c205ac53
commit b26e0ec669
3 changed files with 0 additions and 12 deletions

View file

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

View file

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

View file

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