mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #3062 from halfdan/transition-to-route
Use transitionToRoute in controllers.
This commit is contained in:
commit
7e11cbdc89
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ var SigninController = Ember.ObjectController.extend(ValidationEngine, {
|
||||||
appController.set('loginTransition', null);
|
appController.set('loginTransition', null);
|
||||||
loginTransition.retry();
|
loginTransition.retry();
|
||||||
} else {
|
} else {
|
||||||
self.transitionTo('posts');
|
self.transitionToRoute('posts');
|
||||||
}
|
}
|
||||||
}).catch(function (resp) {
|
}).catch(function (resp) {
|
||||||
self.toggleProperty('submitting');
|
self.toggleProperty('submitting');
|
||||||
|
|
|
@ -30,10 +30,10 @@ var SignupController = Ember.ObjectController.extend(ValidationEngine, {
|
||||||
self.store.find('user', resp.userData.id).then(function (user) {
|
self.store.find('user', resp.userData.id).then(function (user) {
|
||||||
self.send('signedIn', user);
|
self.send('signedIn', user);
|
||||||
self.notifications.clear();
|
self.notifications.clear();
|
||||||
self.transitionTo('posts');
|
self.transitionToRoute('posts');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
self.transitionTo('signin');
|
self.transitionToRoute('signin');
|
||||||
}
|
}
|
||||||
}, function (resp) {
|
}, function (resp) {
|
||||||
self.toggleProperty('submitting');
|
self.toggleProperty('submitting');
|
||||||
|
|
Loading…
Reference in a new issue