A platform for community discussion. Free, open, simple.
UX: Do not show bootstrap mode button on mobile (#20984)
Bianca Nenciue1a5f36d52df
diff --git a/app/assets/javascripts/discourse/app/widgets/header-contents.js b/app/assets/javascripts/discourse/app/widgets/header-contents.jsindex b74d1681c5d..7e9aba68947 100644--- a/app/assets/javascripts/discourse/app/widgets/header-contents.js+++ b/app/assets/javascripts/discourse/app/widgets/header-contents.js@@ -5,7 +5,7 @@ createWidget("header-contents", {tagName: "div.contents.clearfix",transform() {return {- staff: this.get("currentUser.staff"),+ showBootstrapMode: this.currentUser?.staff && this.site.desktopView,};},template: hbs`@@ -20,7 +20,7 @@ createWidget("header-contents", {{{#if attrs.topic}}{{header-topic-info attrs=attrs}}{{else if this.siteSettings.bootstrap_mode_enabled}}- {{#if transformed.staff}}+ {{#if transformed.showBootstrapMode}}{{header-bootstrap-mode attrs=attrs}}{{/if}}{{/if}}