Use transitionToRoute in controllers.

refs #3051
This commit is contained in:
Fabian Becker 2014-06-24 13:52:55 +02:00
parent 9e8d902d0a
commit 644991351b
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ var SigninController = Ember.ObjectController.extend(ValidationEngine, {
appController.set('loginTransition', null);
loginTransition.retry();
} else {
self.transitionTo('posts');
self.transitionToRoute('posts');
}
}).catch(function (resp) {
self.toggleProperty('submitting');

View File

@ -30,10 +30,10 @@ var SignupController = Ember.ObjectController.extend(ValidationEngine, {
self.store.find('user', resp.userData.id).then(function (user) {
self.send('signedIn', user);
self.notifications.clear();
self.transitionTo('posts');
self.transitionToRoute('posts');
});
} else {
self.transitionTo('signin');
self.transitionToRoute('signin');
}
}, function (resp) {
self.toggleProperty('submitting');