mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #3368 from felixrieseberg/master
Show errors on reset page (Closes #3330)
This commit is contained in:
commit
1d926787b3
1 changed files with 1 additions and 4 deletions
|
@ -32,16 +32,13 @@ var ResetController = Ember.Controller.extend(ValidationEngine, {
|
||||||
}
|
}
|
||||||
}).then(function (resp) {
|
}).then(function (resp) {
|
||||||
self.toggleProperty('submitting');
|
self.toggleProperty('submitting');
|
||||||
console.log('success');
|
|
||||||
self.transitionToRoute('signin');
|
self.transitionToRoute('signin');
|
||||||
}).catch(function (errors) {
|
}).catch(function (errors) {
|
||||||
self.toggleProperty('submitting');
|
self.toggleProperty('submitting');
|
||||||
console.log('error');
|
|
||||||
});
|
});
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
self.toggleProperty('submitting');
|
self.toggleProperty('submitting');
|
||||||
// @TODO: notifications here for validation errors
|
self.notifications.showErrors(error);
|
||||||
console.log('validation error', error);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue