UX: add header-categories-wrapper outlet (#30214)

This commit is contained in:
Kris 2024-12-11 11:17:43 -05:00 committed by GitHub
parent aabf174ac8
commit 02eca6e489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 category=@topicInfo.category}}
>
{{#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}}