+8
-0
lines changedFilter options
+8
-0
lines changed Original file line number Diff line number Diff line change
@@ -77,6 +77,13 @@ export class PilotDetails extends Component {
77
77
this.props.updateEntity("Pilot", id, newValues);
78
78
}
79
79
80
+
onRankChanged = (e, result) => {
81
+
const newValues = {rank : result.value};
82
+
const {id} = this.props.pilot;
83
+
84
+
this.props.updateEntity("Pilot", id, newValues);
85
+
}
86
+
80
87
81
88
render() {
82
89
const {pilot={}, pilotIsSelected = false, isEditingPilot = false, ...actions } = this.props;
@@ -114,6 +121,7 @@ export class PilotDetails extends Component {
114
121
selection
115
122
options={RANKS}
116
123
value={rank}
124
+
onChange={this.onRankChanged}
117
125
disabled={!canStopEditing}
118
126
/>
119
127
<Form.Field
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4