Permalink
Browse files

Hook up Pilot "rank" dropdown

  • Loading branch information...
markerikson committed Jan 7, 2017
1 parent 762a820 commit af7e46e18734902cc202d9a71f22406f31fa812b
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/features/pilots/PilotDetails/PilotDetails.jsx
@@ -77,6 +77,13 @@ export class PilotDetails extends Component {
this.props.updateEntity("Pilot", id, newValues);
}
onRankChanged = (e, result) => {
const newValues = {rank : result.value};
const {id} = this.props.pilot;
this.props.updateEntity("Pilot", id, newValues);
}
render() {
const {pilot={}, pilotIsSelected = false, isEditingPilot = false, ...actions } = this.props;
@@ -114,6 +121,7 @@ export class PilotDetails extends Component {
selection
options={RANKS}
value={rank}
onChange={this.onRankChanged}
disabled={!canStopEditing}
/>
<Form.Field

0 comments on commit af7e46e

Please sign in to comment.