mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Add IsDisabled option to Form and FormButtons components
This commit is contained in:
3
resources/js/components/Form.js
vendored
3
resources/js/components/Form.js
vendored
@ -11,6 +11,7 @@ class Form {
|
||||
*/
|
||||
constructor (data = {}) {
|
||||
this.isBusy = false
|
||||
this.isDisabled = false
|
||||
// this.successful = false
|
||||
this.errors = new Errors()
|
||||
// this.originalData = deepCopy(data)
|
||||
@ -268,6 +269,6 @@ class Form {
|
||||
|
||||
Form.routes = {}
|
||||
Form.errorMessage = 'Something went wrong. Please try again.'
|
||||
Form.ignore = ['isBusy', /*'successful'*/, 'errors', 'originalData']
|
||||
Form.ignore = ['isBusy', 'isDisabled', 'errors', 'originalData']
|
||||
|
||||
export default Form
|
||||
|
Reference in New Issue
Block a user