FIX: Display either the topic-status outlet or the fallback (#30938)

This commit is contained in:
Jarek Radosz 2025-01-23 03:25:34 +01:00 committed by GitHub
parent 248501f4c7
commit 94b309b05e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,12 @@ export default class TopicStatus extends Component {
>{{icon "far-eye-slash"}}</span>
{{~/if~}}
{{~#unless this.site.useGlimmerTopicList~}}
{{~#if this.site.useGlimmerTopicList~}}
<PluginOutlet
@name="after-topic-status"
@outletArgs={{hash topic=@topic}}
/>
{{~else~}}
{{~#each TopicStatusIcons.entries as |entry|~}}
{{~#if (get @topic entry.attribute)~}}
<span
@ -118,12 +123,7 @@ export default class TopicStatus extends Component {
>{{icon entry.iconName}}</span>
{{~/if~}}
{{~/each~}}
{{~/unless~}}
<PluginOutlet
@name="after-topic-status"
@outletArgs={{hash topic=@topic}}
/>
{{~/if~}}
{{~! no whitespace ~}}
</this.wrapperElement>
{{~! no whitespace ~}}