A platform for community discussion. Free, open, simple.
UX: add header-categories-wrapper outlet (#30214)
Kris02eca6e489e3
diff --git a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs b/app/assets/javascripts/discourse/app/components/header/topic/info.gjsindex 1717a5e8c76..391503feb33 100644--- a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs+++ b/app/assets/javascripts/discourse/app/components/header/topic/info.gjs@@ -139,25 +139,30 @@ export default class Info extends Component {)}}<div class="categories-wrapper">- {{#if @topicInfo.category.parentCategory}}- {{#if- (and- @topicInfo.category.parentCategory.parentCategory- this.site.desktopView- )- }}+ <PluginOutlet+ @name="header-categories-wrapper"+ @outletArgs={{hash [email protected]}}+ >+ {{#if @topicInfo.category.parentCategory}}+ {{#if+ (and+ @topicInfo.category.parentCategory.parentCategory+ this.site.desktopView+ )+ }}+ {{categoryLink+ @topicInfo.category.parentCategory.parentCategory+ (hash hideParent="true")+ }}+ {{/if}}+{{categoryLink- @topicInfo.category.parentCategory.parentCategory+ @topicInfo.category.parentCategory(hash hideParent="true")}}{{/if}}-- {{categoryLink- @topicInfo.category.parentCategory- (hash hideParent="true")- }}- {{/if}}- {{categoryLink @topicInfo.category (hash hideParent="true")}}+ {{categoryLink @topicInfo.category (hash hideParent="true")}}+ </PluginOutlet></div>{{/if}}