mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-16 01:41:17 +02:00
Update src/Registration.js
Co-Authored-By: Will Hunt <will@half-shot.uk>
This commit is contained in:
parent
5edb0ec912
commit
de05965fc0
@ -40,7 +40,7 @@ export const SAFE_LOCALPART_REGEX = /^[a-z0-9=_\-./]+$/;
|
|||||||
* @param {bool} options.go_welcome_on_cancel
|
* @param {bool} options.go_welcome_on_cancel
|
||||||
* If true, goes to the welcome page if the user cancels the action
|
* If true, goes to the welcome page if the user cancels the action
|
||||||
* @param {bool} options.screen_after
|
* @param {bool} options.screen_after
|
||||||
* If present the screen to redict to after a successful login or register.
|
* If present the screen to redirect to after a successful login or register.
|
||||||
*/
|
*/
|
||||||
export async function startAnyRegistrationFlow(options) {
|
export async function startAnyRegistrationFlow(options) {
|
||||||
if (options === undefined) options = {};
|
if (options === undefined) options = {};
|
||||||
@ -75,7 +75,8 @@ export async function startAnyRegistrationFlow(options) {
|
|||||||
extraButtons: [
|
extraButtons: [
|
||||||
<button className="mx_Dialog_primary" key="start_login"
|
<button className="mx_Dialog_primary" key="start_login"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
modal.close(); dis.dispatch({action: 'start_login',
|
modal.close();
|
||||||
|
dis.dispatch({action: 'start_login',
|
||||||
screenAfterLogin: options.screen_after});
|
screenAfterLogin: options.screen_after});
|
||||||
}
|
}
|
||||||
}>
|
}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user