mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Show error notifications on "reset password" page
closes #3330 - Caught errors are displayed using notifications util
This commit is contained in:
parent
302b360194
commit
7eb32c86d3
@ -32,16 +32,13 @@ var ResetController = Ember.Controller.extend(ValidationEngine, {
|
||||
}
|
||||
}).then(function (resp) {
|
||||
self.toggleProperty('submitting');
|
||||
console.log('success');
|
||||
self.transitionToRoute('signin');
|
||||
}).catch(function (errors) {
|
||||
self.toggleProperty('submitting');
|
||||
console.log('error');
|
||||
});
|
||||
}).catch(function (error) {
|
||||
self.toggleProperty('submitting');
|
||||
// @TODO: notifications here for validation errors
|
||||
console.log('validation error', error);
|
||||
self.notifications.showErrors(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user