From e3bf4a0b8e9208725502f179f79f1badd5678acf Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 17 Jun 2019 16:27:35 +0100 Subject: [PATCH 1/2] Re-enable register button on change to working HS Register button disabling is done via serverErrorIsFatal so we need to reset this on a successful validation. https://github.com/vector-im/riot-web/issues/10029 --- src/components/structures/auth/Registration.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index 1957275505..20b13e4da9 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -180,7 +180,10 @@ module.exports = React.createClass({ serverConfig.hsUrl, serverConfig.isUrl, ); - this.setState({serverIsAlive: true}); + this.setState({ + serverIsAlive: true, + serverErrorIsFatal: false, + }); } catch (e) { this.setState({ busy: false, From 3f6bb0c7cad6fa788ae5019f8993e1db981f8cd8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 17 Jun 2019 16:57:13 +0100 Subject: [PATCH 2/2] Use default cursor for disabled submit button --- res/css/structures/auth/_Login.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/res/css/structures/auth/_Login.scss b/res/css/structures/auth/_Login.scss index 9bcd79a357..68e5f5c19f 100644 --- a/res/css/structures/auth/_Login.scss +++ b/res/css/structures/auth/_Login.scss @@ -30,6 +30,7 @@ limitations under the License. .mx_Login_submit:disabled { opacity: 0.3; + cursor: default; } .mx_AuthBody a.mx_Login_sso_link:link,