chg: [js:api-helper] Show feedback for failure in postForm
parent
a841888db9
commit
7ab3a5bfee
|
@ -381,7 +381,7 @@ class AJAXApi {
|
||||||
this.provideSuccessFeedback(data, {}, skipFeedback)
|
this.provideSuccessFeedback(data, {}, skipFeedback)
|
||||||
toReturn = data;
|
toReturn = data;
|
||||||
} else {
|
} else {
|
||||||
this.provideFailureFeedback(data, {}, skipFeedback)
|
this.provideFailureFeedback(data, {}, false)
|
||||||
feedbackShown = true
|
feedbackShown = true
|
||||||
this.injectFormValidationFeedback(form, data.errors)
|
this.injectFormValidationFeedback(form, data.errors)
|
||||||
toReturn = Promise.reject(data.errors);
|
toReturn = Promise.reject(data.errors);
|
||||||
|
|
Loading…
Reference in New Issue