Skip to content

A platform for community discussion. Free, open, simple.

DEV: add plugin outlet to desktop & mobile Topic List Item after badges (#31998)

Robert94ee3554da56
diff --git a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs
index dfa37569ac5..709f40e1374 100644
--- a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs
+++ b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs
@@ -344,6 +344,10 @@ export default class Item extends Component {
class="badge-notification new-topic"
></span></span>
{{~/if~}}
+ <PluginOutlet
+ @name="topic-list-after-badges"
+ @outletArgs={{hash topic=@topic}}
+ />
{{~#if this.expandPinned~}}
<TopicExcerpt @topic={{@topic}} />
{{~/if~}}
diff --git a/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs b/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
index 0c801ab318f..62080f864af 100644
--- a/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
+++ b/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
@@ -93,6 +93,10 @@ export default class TopicCell extends Component {
@url={{@topic.lastUnreadUrl}}
/>
{{~/if~}}
+ <PluginOutlet
+ @name="topic-list-after-badges"
+ @outletArgs={{hash topic=@topic}}
+ />
</PluginOutlet>
</span>