Allow changing server if validation has failed

Show the server config section if there's an error and fix an if
case where we forgot to un-set the busy flag
This commit is contained in:
David Baker 2019-06-17 18:47:20 +01:00
parent fac6dc25f6
commit 10f6abfe17
2 changed files with 8 additions and 1 deletions

View file

@ -104,6 +104,9 @@ export default class ServerConfig extends React.PureComponent {
const stateForError = AutoDiscoveryUtils.authComponentStateForError(e);
if (!stateForError.isFatalError) {
this.setState({
busy: false,
});
// carry on anyway
const result = await AutoDiscoveryUtils.validateServerConfigWithStaticUrls(hsUrl, isUrl, true);
this.props.onServerConfigChange(result);