mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-16 00:27:49 +02:00
Set up the Create form
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user