Signed-off-by: Stuart Mumford <stuart@cadair.com>
This commit is contained in:
Stuart Mumford 2020-01-13 10:56:41 +00:00
parent 32eb2c13bf
commit e454d84e9d
No known key found for this signature in database
GPG key ID: 60BC5C03E6276769
3 changed files with 12 additions and 8 deletions

View file

@ -73,9 +73,12 @@ export async function startAnyRegistrationFlow(options) {
description: _t("You need to login or register to do this."), description: _t("You need to login or register to do this."),
button: _t("Register"), button: _t("Register"),
extraButtons: [ extraButtons: [
<button className="mx_Dialog_primary" <button className="mx_Dialog_primary" key="start_login"
onClick={() => {modal.close(); dis.dispatch({action: 'start_login', onClick={() => {
screenAfterLogin: options.screen_after});}}> modal.close(); dis.dispatch({action: 'start_login',
screenAfterLogin: options.screen_after});
}
}>
{ _t('Login') } { _t('Login') }
</button>, </button>,
], ],

View file

@ -1010,9 +1010,9 @@ export default createReactClass({
go_welcome_on_cancel: true, go_welcome_on_cancel: true,
screen_after: {screen: `user/${this.props.config.welcomeUserId}`, screen_after: {screen: `user/${this.props.config.welcomeUserId}`,
params: { params: {
action: 'chat' action: 'chat',
} },
} },
}); });
return; return;
} }

View file

@ -123,9 +123,10 @@
"Unable to enable Notifications": "Unable to enable Notifications", "Unable to enable Notifications": "Unable to enable Notifications",
"This email address was not found": "This email address was not found", "This email address was not found": "This email address was not found",
"Your email address does not appear to be associated with a Matrix ID on this Homeserver.": "Your email address does not appear to be associated with a Matrix ID on this Homeserver.", "Your email address does not appear to be associated with a Matrix ID on this Homeserver.": "Your email address does not appear to be associated with a Matrix ID on this Homeserver.",
"Registration Required": "Registration Required", "Login or Registration Required": "Login or Registration Required",
"You need to register to do this. Would you like to register now?": "You need to register to do this. Would you like to register now?", "You need to login or register to do this.": "You need to login or register to do this.",
"Register": "Register", "Register": "Register",
"Login": "Login",
"Default": "Default", "Default": "Default",
"Restricted": "Restricted", "Restricted": "Restricted",
"Moderator": "Moderator", "Moderator": "Moderator",