A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/markerikson/project-minimek/commit/af7e46e18734902cc202d9a71f22406f31fa812b below:

Hook up Pilot "rank" dropdown · markerikson/project-minimek@af7e46e · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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