diff --git a/app/assets/javascripts/discourse/app/components/sidebar/anonymous/custom-sections.gjs b/app/assets/javascripts/discourse/app/components/sidebar/anonymous/custom-sections.gjs index 0b540f9290a..398380c574f 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/anonymous/custom-sections.gjs +++ b/app/assets/javascripts/discourse/app/components/sidebar/anonymous/custom-sections.gjs @@ -1,5 +1,5 @@ -import SidebarCustomSection from "../common/custom-sections"; +import SidebarCustomSections from "../common/custom-sections"; -export default class SidebarAnonymousCustomSections extends SidebarCustomSection { +export default class SidebarAnonymousCustomSections extends SidebarCustomSections { anonymous = true; } diff --git a/app/assets/javascripts/discourse/app/components/sidebar/common/custom-sections.gjs b/app/assets/javascripts/discourse/app/components/sidebar/common/custom-sections.gjs index fdbd653e411..a4e50ab5ca6 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/common/custom-sections.gjs +++ b/app/assets/javascripts/discourse/app/components/sidebar/common/custom-sections.gjs @@ -2,7 +2,7 @@ import Component from "@glimmer/component"; import { service } from "@ember/service"; import CustomSection from "./custom-section"; -export default class SidebarCustomSection extends Component { +export default class SidebarCustomSections extends Component { @service currentUser; @service router; @service messageBus; diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section.gjs b/app/assets/javascripts/discourse/app/components/sidebar/section.gjs index f5bf177de08..d565b27a247 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/section.gjs +++ b/app/assets/javascripts/discourse/app/components/sidebar/section.gjs @@ -5,6 +5,7 @@ import { action } from "@ember/object"; import didInsert from "@ember/render-modifiers/modifiers/did-insert"; import { service } from "@ember/service"; import { isEmpty } from "@ember/utils"; +import concatClass from "discourse/helpers/concat-class"; import { getCollapsedSidebarSectionKey, getSidebarSectionContentId, @@ -60,7 +61,7 @@ export default class SidebarSection extends Component { } get displaySectionContent() { - if (!isEmpty(this.sidebarState.filter)) { + if (this.args.hideSectionHeader || !isEmpty(this.sidebarState.filter)) { return true; } @@ -115,7 +116,15 @@ export default class SidebarSection extends Component {