1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 16:51:34 +02:00

Clean up some old code

This commit is contained in:
Toby Zerner
2015-10-22 12:25:22 +10:30
parent 2c87f36869
commit b482fb93c5
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.
*