Set up the Create form

This commit is contained in:
Bubka
2023-10-19 11:53:13 +02:00
parent 1705d23277
commit 68d98652a3
4 changed files with 517 additions and 4 deletions

View File

@ -40,6 +40,15 @@ class Form {
})
}
/**
* Fill form data.
*
* @param {Object} data
*/
hasChanged () {
return this.keys().some(key => this[key] !== this.originalData[key])
}
/**
* Fill form data.
*
@ -315,6 +324,6 @@ class Form {
Form.routes = {}
Form.errorMessage = 'Something went wrong. Please try again.'
Form.ignore = ['isBusy', 'isDisabled', 'errors', 'originalData']
Form.ignore = ['isBusy', 'isDisabled', 'errors', 'originalData', 'axios']
export default Form