Fix remaining dropdown's
This commit is contained in:
@@ -48,6 +48,13 @@ class SelectAppPlatform extends IPCContainer {
|
||||
this.grabLatestRelease(Constants.LINUX_SELECTABLE_PLATFORMS[this.state.Selected])
|
||||
};
|
||||
|
||||
handleChanged = e => {
|
||||
this.setState({
|
||||
...this.state,
|
||||
Selected: Constants.LINUX_SELECTABLE_PLATFORMS.indexOf(e.target.value),
|
||||
});
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Box dxDark dxStyle={{padding: 'var(--default_spacing)'}}>
|
||||
@@ -56,13 +63,10 @@ class SelectAppPlatform extends IPCContainer {
|
||||
<p>Repertory was unable to detect your Linux distribution. Please select one of the following and click <b>Test</b> to continue:</p>
|
||||
</div>
|
||||
<div className={'SAPActions'}>
|
||||
<DropDown changed={e => this.setState({
|
||||
...this.state,
|
||||
Selected: e.target.value
|
||||
})}
|
||||
<DropDown changed={this.handleChanged}
|
||||
disabled={this.props.InstallTestActive}
|
||||
items={Constants.LINUX_SELECTABLE_PLATFORMS}
|
||||
selected={this.state.Selected}/>
|
||||
selected={Constants.LINUX_SELECTABLE_PLATFORMS[this.state.Selected]}/>
|
||||
<Button clicked={this.handleTestClicked}
|
||||
disabled={this.props.InstallTestActive}>Test</Button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user