commit
1b764f93c3
5
resources/assets/js/plugins/form.js
vendored
5
resources/assets/js/plugins/form.js
vendored
@ -493,6 +493,11 @@ export default class Form {
|
||||
|
||||
// Form fields check validation issue
|
||||
onFail(error) {
|
||||
if (error.request.status == 419) {
|
||||
window.location.href = '';
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof this.errors != "undefined") {
|
||||
this.errors.record(error.response.data.errors);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user