Clean up some old code

This commit is contained in:
Toby Zerner
2015-10-22 12:25:22 +10:30
parent 1cd6908dbb
commit c0364cbc9d
3 changed files with 2 additions and 84 deletions

View File

@ -295,23 +295,6 @@ export default class App {
this.modal.show(new RequestErrorModal({error}));
}
/**
* Show alert error messages for each error returned in an API response.
*
* @param {Object} response
* @public
*/
alertErrors(response) {
if (response.errors) {
response.errors.forEach(error => {
this.alerts.show(new Alert({
type: 'error',
children: error.detail
}));
});
}
}
/**
* Construct a URL to the route with the given name.
*