chg: [js:api-helper] Show feedback for failure in postForm

pull/121/head
Sami Mokaddem 2022-10-25 10:29:47 +02:00
parent a841888db9
commit 7ab3a5bfee
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -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);