mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Display either the topic-status outlet or the fallback (#30938)
This commit is contained in:
parent
248501f4c7
commit
94b309b05e
@ -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 ~}}
|
||||
|
Loading…
Reference in New Issue
Block a user