Skip to content

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

DEV: Add new plugin outlets in the `header/topic/info` component (#27038)

Sérgio Saquetim17add599e3cf
diff --git a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs b/app/assets/javascripts/discourse/app/components/header/topic/info.gjs
index 95a5e7b976a..25f9608f6d0 100644
--- a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs
+++ b/app/assets/javascripts/discourse/app/components/header/topic/info.gjs
@@ -80,6 +80,10 @@ export default class Info extends Component {
<div
class={{concatClass (if this.twoRows "two-rows") "extra-info-wrapper"}}
>
+ <PluginOutlet
+ @name="header-topic-info__before"
+ @outletArgs={{hash topic=@topic}}
+ />
<div class={{concatClass (if this.twoRows "two-rows") "extra-info"}}>
<div class="title-wrapper">
<h1 class="header-title">
@@ -178,6 +182,10 @@ export default class Info extends Component {
{{/if}}
</div>
</div>
+ <PluginOutlet
+ @name="header-topic-info__after"
+ @outletArgs={{hash topic=@topic}}
+ />
</div>
</template>
}