From daa8aedccfe71c58e6efb45bbad69c93a258910a Mon Sep 17 00:00:00 2001 From: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Date: Mon, 17 Oct 2022 21:19:15 -0500 Subject: [PATCH] Revert "UX: Simplify bootstrap mode visuals (#18626)" (#18638) This reverts commit 868ab26fb3fd9be83c7925d96b500896a0065835. --- .../discourse/app/components/d-navigation.js | 5 ----- .../components/bootstrap-mode-notice.hbs | 10 +++++++++- .../app/templates/components/d-navigation.hbs | 13 ------------ .../acceptance/bootstrap-mode-notice-test.js | 20 ++++++++++++++++++- 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/d-navigation.js b/app/assets/javascripts/discourse/app/components/d-navigation.js index 34c4c75321..2153fc5f9c 100644 --- a/app/assets/javascripts/discourse/app/components/d-navigation.js +++ b/app/assets/javascripts/discourse/app/components/d-navigation.js @@ -5,7 +5,6 @@ import discourseComputed from "discourse-common/utils/decorators"; import { NotificationLevels } from "discourse/lib/notification-levels"; import { getOwner } from "discourse-common/lib/get-owner"; import { inject as service } from "@ember/service"; -import showModal from "discourse/lib/show-modal"; export default Component.extend(FilterModeMixin, { router: service(), @@ -163,9 +162,5 @@ export default Component.extend(FilterModeMixin, { this.createTopic(); } }, - - inviteUsers() { - showModal("create-invite"); - }, }, }); diff --git a/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs b/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs index 66b0a9e8b7..aa9fb8b0b4 100644 --- a/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs @@ -1,5 +1,13 @@
- {{this.message}} +
+ {{this.message}} +
+
+
+ {{#if this.site.wizard_required}} + + {{/if}} +
diff --git a/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs b/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs index d4efd2c880..2e793cfaa8 100644 --- a/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs @@ -39,19 +39,6 @@ category=this.category tag=this.tag}} /> - {{#if (and (or this.site.siteSettings.invite_only this.site.siteSettings.bootstrap_mode_enabled) this.currentUser.admin)}} - - {{/if}} - - {{#if (and this.site.siteSettings.wizard_required this.currentUser.admin)}} - {{#unless this.site.mobileView}} - - {{d-icon "pencil-alt"}} - {{i18n "bootstrap_wizard_link_title"}} - - {{/unless}} - {{/if}} -