Add options to switch bridge backup WebSocket server port

This commit is contained in:
hensm
2020-02-26 16:31:18 +00:00
parent af521f9a0f
commit 78d8516287
8 changed files with 62 additions and 23 deletions

View File

@@ -171,9 +171,6 @@ class OptionsApp extends Component<{}, OptionsAppState> {
return (
<div>
<Bridge info={ this.state.bridgeInfo }
loading={ this.state.bridgeLoading } />
<form id="form" ref={ form => { this.form = form; }}
onSubmit={ this.handleFormSubmit }
onChange={ this.handleFormChange }>
@@ -415,6 +412,12 @@ class OptionsApp extends Component<{}, OptionsAppState> {
{ _("optionsSave") }
</button>
</div>
{ // Workaround for form default button }
<Bridge info={ this.state.bridgeInfo }
loading={ this.state.bridgeLoading }
options={ this.state.options }
onChange={ this.handleInputChange } /> }
</form>
<details className="about">