From c84198afd1ea6678f186156255dbe6bc6a5931ad Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 28 Jan 2019 17:49:24 -0600 Subject: [PATCH] Disable phases for now --- src/components/structures/auth/Login.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js index e0fe5bfc16..85ccecdac3 100644 --- a/src/components/structures/auth/Login.js +++ b/src/components/structures/auth/Login.js @@ -37,6 +37,9 @@ const PHASE_SERVER_DETAILS = 0; // Show the appropriate login flow(s) for the server const PHASE_LOGIN = 1; +// Disable phases for now, pending UX discussion on WK discovery +const PHASES_ENABLED = false; + // These are used in several places, and come from the js-sdk's autodiscovery // stuff. We define them here so that they'll be picked up by i18n. _td("Invalid homeserver discovery response"); @@ -549,7 +552,7 @@ module.exports = React.createClass({ // If we're on a different phase, we only show the server type selector, // which is always shown if we allow custom URLs at all. - if (this.state.phase !== PHASE_SERVER_DETAILS) { + if (PHASES_ENABLED && this.state.phase !== PHASE_SERVER_DETAILS) { return
+ {_t("Next")} + ; + } + return
{serverDetails} - - {_t("Next")} - + {nextButton}
; }, loginComponentForStep() { - if (this.state.phase !== PHASE_LOGIN) { + if (PHASES_ENABLED && this.state.phase !== PHASE_LOGIN) { return null; } @@ -623,6 +631,7 @@ module.exports = React.createClass({ // If custom URLs are allowed and we haven't selected the Free server type, wire // up the server details edit link. if ( + PHASES_ENABLED && !SdkConfig.get()['disable_custom_urls'] && this.state.serverType !== ServerType.FREE ) {