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