From 27144f188c77febb3bd5385b3e071e3776ad8bbd Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 8 Dec 2023 10:49:54 -0500 Subject: [PATCH] UX: if no login options are configured, show a message (#24777) Admins will be instructed to login via /u/admin-login to change their site settings. --- .../discourse/app/components/modal/login.hbs | 145 ++++++++++-------- .../discourse/app/components/modal/login.js | 9 ++ .../acceptance/modal/login/login-test.js | 17 ++ config/locales/client.en.yml | 3 + 4 files changed, 111 insertions(+), 63 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/modal/login.hbs b/app/assets/javascripts/discourse/app/components/modal/login.hbs index a37b43e8663..78c13dc0490 100644 --- a/app/assets/javascripts/discourse/app/components/modal/login.hbs +++ b/app/assets/javascripts/discourse/app/components/modal/login.hbs @@ -9,78 +9,97 @@ <:body> - {{#if this.site.mobileView}} - - {{#if this.showLoginButtons}} - - {{/if}} - {{/if}} - - {{#if this.canLoginLocal}} + {{#if this.hasNoLoginOptions}}
- {{#if this.site.desktopView}} - - {{/if}} - - -
- {{/if}} - - {{#if (and this.showLoginButtons this.site.desktopView)}} - {{#unless this.canLoginLocal}} -