From aad17a0be5c5285363526f9995f8744bbebc7181 Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Tue, 7 Jan 2020 16:47:43 +0000 Subject: [PATCH] Add some buttons --- src/Registration.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Registration.js b/src/Registration.js index ac8baa3cca..5f23854f47 100644 --- a/src/Registration.js +++ b/src/Registration.js @@ -67,9 +67,15 @@ export async function startAnyRegistrationFlow(options) { //} else { const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); Modal.createTrackedDialog('Registration required', '', QuestionDialog, { - title: _t("Registration Required"), - description: _t("You need to register to do this. Would you like to register now?"), + title: _t("Login or Registration Required"), + description: _t("You need to login or register to do this."), button: _t("Register"), + extraButtons: [ + , + ], onFinished: (proceed) => { if (proceed) { dis.dispatch({action: 'start_registration'}); @@ -101,4 +107,3 @@ export async function startAnyRegistrationFlow(options) { // } // throw new Error("Register request succeeded when it should have returned 401!"); // } -