Skip to content

Commit a89f61a

Browse files
committed
Add error text and title with server name
1 parent 0244aae commit a89f61a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/components/structures/auth/Registration.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,14 @@ export default class Registration extends React.Component<IProps, IState> {
741741
</div>
742742
);
743743
} else if (this.props.mobileRegister) {
744-
body = this.renderRegisterComponent();
744+
body = (
745+
<Fragment>
746+
<h1>{_t("auth|mobile_create_account_title", { hsName: this.props.serverConfig.hsName })}</h1>
747+
{errorText}
748+
{serverDeadSection}
749+
{this.renderRegisterComponent()}
750+
</Fragment>
751+
);
745752
} else {
746753
body = (
747754
<Fragment>
@@ -772,11 +779,7 @@ export default class Registration extends React.Component<IProps, IState> {
772779
);
773780
}
774781
if (this.props.mobileRegister) {
775-
return (
776-
<Fragment>
777-
<div className="mx_MobileRegister_body">{body}</div>
778-
</Fragment>
779-
);
782+
return <div className="mx_MobileRegister_body">{body}</div>;
780783
}
781784
return (
782785
<AuthPage>

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@
229229
},
230230
"misconfigured_body": "Ask your %(brand)s admin to check <a>your config</a> for incorrect or duplicate entries.",
231231
"misconfigured_title": "Your %(brand)s is misconfigured",
232+
"mobile_create_account_title": "You're about to create an account on %(hsName)s",
232233
"msisdn_field_description": "Other users can invite you to rooms using your contact details",
233234
"msisdn_field_label": "Phone",
234235
"msisdn_field_number_invalid": "That phone number doesn't look quite right, please check and try again",

0 commit comments

Comments
 (0)