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
Keep cancel button for now and make login unfilled
This commit is contained in:
@@ -69,12 +69,12 @@ export async function startAnyRegistrationFlow(options) {
|
|||||||
//} else {
|
//} else {
|
||||||
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||||
const modal = Modal.createTrackedDialog('Registration required', '', QuestionDialog, {
|
const modal = Modal.createTrackedDialog('Registration required', '', QuestionDialog, {
|
||||||
hasCancelButton: false,
|
hasCancelButton: true,
|
||||||
title: _t("Sign In or Create Account"),
|
title: _t("Sign In or Create Account"),
|
||||||
description: _t("Use your account or create a new one to continue."),
|
description: _t("Use your account or create a new one to continue."),
|
||||||
button: _t("Create Account"),
|
button: _t("Create Account"),
|
||||||
extraButtons: [
|
extraButtons: [
|
||||||
<button className="mx_Dialog_primary" key="start_login"
|
<button key="start_login"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
modal.close();
|
modal.close();
|
||||||
dis.dispatch({action: 'start_login',
|
dis.dispatch({action: 'start_login',
|
||||||
|
|||||||
Reference in New Issue
Block a user