Add "auth" parameter to tune connect form

This commit is contained in:
Drew DeVault 2021-06-10 11:40:59 -04:00 committed by Simon Ser
parent 6039e13411
commit eef2093c88
3 changed files with 31 additions and 6 deletions

View file

@ -213,7 +213,12 @@ export default class App extends Component {
}
this.setState((state) => {
return { connectParams: { ...state.connectParams, ...connectParams } };
return {
connectParams: {
...state.connectParams,
...connectParams,
},
};
});
if (connectParams.autoconnect) {
@ -1203,6 +1208,7 @@ export default class App extends Component {
<${ConnectForm}
error=${this.state.error}
params=${this.state.connectParams}
auth=${this.config.server ? this.config.server.auth : null}
connecting=${connecting}
onSubmit=${this.handleConnectSubmit}
key=${this.state.connectParams}