Add error text and title with server name
This commit is contained in:
parent
0244aaeb2f
commit
a89f61a357
2 changed files with 10 additions and 6 deletions
|
@ -741,7 +741,14 @@ export default class Registration extends React.Component<IProps, IState> {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else if (this.props.mobileRegister) {
|
} else if (this.props.mobileRegister) {
|
||||||
body = this.renderRegisterComponent();
|
body = (
|
||||||
|
<Fragment>
|
||||||
|
<h1>{_t("auth|mobile_create_account_title", { hsName: this.props.serverConfig.hsName })}</h1>
|
||||||
|
{errorText}
|
||||||
|
{serverDeadSection}
|
||||||
|
{this.renderRegisterComponent()}
|
||||||
|
</Fragment>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
body = (
|
body = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
@ -772,11 +779,7 @@ export default class Registration extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (this.props.mobileRegister) {
|
if (this.props.mobileRegister) {
|
||||||
return (
|
return <div className="mx_MobileRegister_body">{body}</div>;
|
||||||
<Fragment>
|
|
||||||
<div className="mx_MobileRegister_body">{body}</div>
|
|
||||||
</Fragment>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<AuthPage>
|
<AuthPage>
|
||||||
|
|
|
@ -229,6 +229,7 @@
|
||||||
},
|
},
|
||||||
"misconfigured_body": "Ask your %(brand)s admin to check <a>your config</a> for incorrect or duplicate entries.",
|
"misconfigured_body": "Ask your %(brand)s admin to check <a>your config</a> for incorrect or duplicate entries.",
|
||||||
"misconfigured_title": "Your %(brand)s is misconfigured",
|
"misconfigured_title": "Your %(brand)s is misconfigured",
|
||||||
|
"mobile_create_account_title": "You're about to create an account on %(hsName)s",
|
||||||
"msisdn_field_description": "Other users can invite you to rooms using your contact details",
|
"msisdn_field_description": "Other users can invite you to rooms using your contact details",
|
||||||
"msisdn_field_label": "Phone",
|
"msisdn_field_label": "Phone",
|
||||||
"msisdn_field_number_invalid": "That phone number doesn't look quite right, please check and try again",
|
"msisdn_field_number_invalid": "That phone number doesn't look quite right, please check and try again",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue