From 1e3e9f4f875dd65756363c797837a33a5d2f4298 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 29 May 2019 17:48:12 +0100 Subject: [PATCH] Remove username on HS input label Removes redundant HS name on the username input that duplicates the header above it. Fixes https://github.com/vector-im/riot-web/issues/9884 --- src/components/views/auth/PasswordLogin.js | 5 +---- src/i18n/strings/en_EN.json | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/views/auth/PasswordLogin.js b/src/components/views/auth/PasswordLogin.js index fe6fd74499..b7dd4a4e83 100644 --- a/src/components/views/auth/PasswordLogin.js +++ b/src/components/views/auth/PasswordLogin.js @@ -211,10 +211,7 @@ export default class PasswordLogin extends React.Component { name="username" // make it a little easier for browser's remember-password key="username_input" type="text" - label={SdkConfig.get().disable_custom_urls ? - _t("Username on %(hs)s", { - hs: this.props.serverConfig.hsName, - }) : _t("Username")} + label={_t("Username")} value={this.state.username} onChange={this.onUsernameChanged} onBlur={this.onUsernameBlur} diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 0360b89f46..343e75bcf3 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1329,7 +1329,6 @@ "The phone number field must not be blank.": "The phone number field must not be blank.", "The password field must not be blank.": "The password field must not be blank.", "Email": "Email", - "Username on %(hs)s": "Username on %(hs)s", "Username": "Username", "Phone": "Phone", "Not sure of your password? Set a new one": "Not sure of your password? Set a new one",