From 608efaaae38743acc7e9faa2a710f6590cdf8c9e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 4 Jun 2019 16:04:49 -0600 Subject: [PATCH] Hide guest functions on the welcome page if not logged in Fixes https://github.com/vector-im/riot-web/issues/9546 --- res/welcome.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/res/welcome.html b/res/welcome.html index ba368b317b..5331a934f0 100644 --- a/res/welcome.html +++ b/res/welcome.html @@ -149,6 +149,15 @@ h1::after { background-image: url('welcome/images/icon-room-directory.svg'); } +/* +.mx_WelcomePage_loggedIn is applied by EmbeddedPage from the Welcome component +If it is set on the page, we should show the buttons. Otherwise, we have to assume +we don't have an account and should hide them. No account == no guest account either. + */ +.mx_WelcomePage:not(.mx_WelcomePage_loggedIn) .mx_WelcomePage_guestFunctions { + display: none; +} +
@@ -169,9 +178,9 @@ h1::after { + TODO: Strip out these comments and rely on the guest flag --> -
+
_t("Need help?")