chg: [js:api-helper] Renamed function

pull/37/head
mokaddem 2021-01-12 10:21:54 +01:00
parent b93dd49232
commit 43118f21eb
1 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ class AJAXApi {
body: data.message
}, true, skipFeedback);
feedbackShown = true
this.injectFormValidation(form, data.errors)
this.injectFormValidationFeedback(form, data.errors)
toReturn = Promise.reject(data.errors);
}
} catch (error) {
@ -297,7 +297,7 @@ class AJAXApi {
* @param {HTMLFormElement} form - The form form which the POST operation is coming from
* @param {Object} [validationErrors={}] - Validation errors reported by the server
*/
injectFormValidation(form, validationErrors) {
injectFormValidationFeedback(form, validationErrors) {
const formHelper = new FormHelper(form)
formHelper.injectValidationErrors(validationErrors)
}