diff --git a/app/assets/javascripts/discourse/app/components/sidebar/anonymous/sections.hbs b/app/assets/javascripts/discourse/app/components/sidebar/anonymous/sections.hbs index a6da74268e6..f757ca0c996 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/anonymous/sections.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/anonymous/sections.hbs @@ -1,5 +1,5 @@
\ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.hbs b/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.hbs index f437f28ec05..3baeb1578bd 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.hbs @@ -9,7 +9,7 @@ diff --git a/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.js b/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.js index a7888ce2d9a..6e17d85693c 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.js +++ b/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.js @@ -5,9 +5,22 @@ import { inject as service } from "@ember/service"; export default class SidebarHamburgerDropdown extends Component { @service appEvents; @service currentUser; + @service site; + @service siteSettings; @action triggerRenderedAppEvent() { this.appEvents.trigger("sidebar-hamburger-dropdown:rendered"); } + + get collapsableSections() { + if ( + this.siteSettings.navigation_menu === "header dropdown" && + !this.args.collapsableSections + ) { + return this.site.mobileView || this.site.narrowDesktopView; + } else { + this.args.collapsableSections; + } + } } diff --git a/app/assets/javascripts/discourse/app/components/sidebar/user/sections.hbs b/app/assets/javascripts/discourse/app/components/sidebar/user/sections.hbs index 3168f543d92..2f7f7f6bf08 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/user/sections.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/user/sections.hbs @@ -1,5 +1,5 @@