mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Don't block submit if the server is dead
But still check so we can clear any errors, maybe
This commit is contained in:
parent
120123bcb1
commit
59ba5fe62a
1 changed files with 1 additions and 4 deletions
|
@ -82,10 +82,8 @@ module.exports = React.createClass({
|
|||
serverConfig.isUrl,
|
||||
);
|
||||
this.setState({serverIsAlive: true});
|
||||
return true;
|
||||
} catch (e) {
|
||||
this.setState(AutoDiscoveryUtils.authComponentStateForError(e));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -122,8 +120,7 @@ module.exports = React.createClass({
|
|||
onSubmitForm: async function(ev) {
|
||||
ev.preventDefault();
|
||||
|
||||
const shouldBlockSubmit = await this._checkServerLiveliness(this.props.serverConfig);
|
||||
if (shouldBlockSubmit) return;
|
||||
await this._checkServerLiveliness(this.props.serverConfig);
|
||||
|
||||
if (!this.state.email) {
|
||||
this.showErrorDialog(_t('The email address linked to your account must be entered.'));
|
||||
|
|
Loading…
Reference in a new issue