diff --git a/app/assets/javascripts/discourse/app/components/header/contents.gjs b/app/assets/javascripts/discourse/app/components/header/contents.gjs index d4f79427000..c67b2dab979 100644 --- a/app/assets/javascripts/discourse/app/components/header/contents.gjs +++ b/app/assets/javascripts/discourse/app/components/header/contents.gjs @@ -3,6 +3,7 @@ import { hash } from "@ember/helper"; import { service } from "@ember/service"; import { and } from "truth-helpers"; import deprecatedOutletArgument from "discourse/helpers/deprecated-outlet-argument"; +import { applyValueTransformer } from "discourse/lib/transformer"; import BootstrapModeNotice from "../bootstrap-mode-notice"; import PluginOutlet from "../plugin-outlet"; import HomeLogo from "./home-logo"; @@ -24,6 +25,18 @@ export default class Contents extends Component { return "bars"; } + get minimized() { + return applyValueTransformer( + "home-logo-minimized", + this.args.topicInfoVisible, + { + topicInfo: this.args.topicInfo, + sidebarEnabled: this.args.sidebarEnabled, + showSidebar: this.args.showSidebar, + } + ); + } +