Work Item and Activity screens mostly complete

This commit is contained in:
John Lyon-Smith
2018-04-03 17:25:59 -07:00
parent 410d2fde4f
commit 72af9a7035
25 changed files with 512 additions and 141 deletions

View File

@@ -16,12 +16,12 @@ export class BoundSwitch extends React.Component {
}
@autobind
handleValueChange() {
handleValueChange(newValue) {
const { binder, name } = this.props
const state = binder.getFieldState(name)
if (!state.readOnly && !state.disabled) {
this.setState(binder.updateFieldValue(name, !state.value))
this.setState(binder.updateFieldValue(name, newValue))
}
}