Integrating new form binder

This commit is contained in:
John Lyon-Smith
2018-03-06 07:43:21 -08:00
parent 535fffaf41
commit c1bf470aa0
15 changed files with 93 additions and 54 deletions

View File

@@ -17,7 +17,7 @@ export class ForgotPassword extends React.Component {
isValid: (r, v) => (regExpPattern.email.test(v))
},
submit: {
nonValue: true,
noValue: true,
isDisabled: (r) => (!r.anyModified || !r.allValid)
}
}

View File

@@ -29,7 +29,7 @@ export class Login extends Component {
initValue: true
},
submit: {
nonValue: true,
noValue: true,
isDisabled: (r) => (!r.anyModified || !r.allValid)
}
}

View File

@@ -19,7 +19,7 @@ export class ResetPassword extends React.Component {
isValid: (r, v) => (v !== '' && v === r.getField('newPassword').value)
},
submit: {
nonValue: true,
noValue: true,
isDisabled: (r) => (!r.anyModified && !r.allValid)
}
}