You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
close modal
This commit is contained in:
@@ -66,13 +66,13 @@ export async function startAnyRegistrationFlow(options) {
|
||||
// });
|
||||
//} else {
|
||||
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||
Modal.createTrackedDialog('Registration required', '', QuestionDialog, {
|
||||
const modal = Modal.createTrackedDialog('Registration required', '', QuestionDialog, {
|
||||
title: _t("Login or Registration Required"),
|
||||
description: _t("You need to login or register to do this."),
|
||||
button: _t("Register"),
|
||||
extraButtons: [
|
||||
<button className="mx_Dialog_primary"
|
||||
onClick={() => {dis.dispatch({action: 'start_login'});}}>
|
||||
onClick={() => {modal.close(); dis.dispatch({action: 'start_login'});}}>
|
||||
{ _t('Login') }
|
||||
</button>,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user