A platform for community discussion. Free, open, simple.
FIX: Render plugin outlets in nested topic actions (#40835)
Mark VanLandingham5d79359c4380
diff --git a/frontend/discourse/app/components/nested/topic-actions.gjs b/frontend/discourse/app/components/nested/topic-actions.gjsindex 60cdeea592b..3eebd784378 100644--- a/frontend/discourse/app/components/nested/topic-actions.gjs+++ b/frontend/discourse/app/components/nested/topic-actions.gjs@@ -29,7 +29,6 @@ export default class NestedTopicActions extends Component {@deferTopic={{this.topicController.deferTopic}}@replyToPost={{this.topicController.replyToPost}}@showCreate={{false}}- @showPluginOutlets={{false}}class="nested-view__topic-actions"/></template>diff --git a/frontend/discourse/app/components/topic-footer-buttons.gjs b/frontend/discourse/app/components/topic-footer-buttons.gjsindex b76d1c50123..cff736750a8 100644--- a/frontend/discourse/app/components/topic-footer-buttons.gjs+++ b/frontend/discourse/app/components/topic-footer-buttons.gjs@@ -138,10 +138,6 @@ export default class TopicFooterButtons extends Component {return this.showCreate !== false && this.topic?.details?.can_create_post;}- get renderPluginOutlets() {- return this.showPluginOutlets !== false;- }-<template><divrole="region"@@ -277,13 +273,11 @@ export default class TopicFooterButtons extends Component {{{/if}}</div>- {{#if this.renderPluginOutlets}}- <PluginOutlet- @name="topic-footer-main-buttons-before-create"- @outletArgs={{lazyHash topic=this.topic}}- @connectorTagName="span"- />- {{/if}}+ <PluginOutlet+ @name="topic-footer-main-buttons-before-create"+ @outletArgs={{lazyHash topic=this.topic}}+ @connectorTagName="span"+ />{{#if this.showCreateButton}}<DButton@@ -295,13 +289,11 @@ export default class TopicFooterButtons extends Component {/>{{/if}}- {{#if this.renderPluginOutlets}}- <PluginOutlet- @name="after-topic-footer-main-buttons"- @outletArgs={{lazyHash topic=this.topic}}- @connectorTagName="span"- />- {{/if}}+ <PluginOutlet+ @name="after-topic-footer-main-buttons"+ @outletArgs={{lazyHash topic=this.topic}}+ @connectorTagName="span"+ /></div>{{#if this.site.desktopView}}@@ -332,13 +324,11 @@ export default class TopicFooterButtons extends Component {{{/if}}{{/if}}- {{#if this.renderPluginOutlets}}- <PluginOutlet- @name="after-topic-footer-buttons"- @outletArgs={{lazyHash topic=this.topic}}- @connectorTagName="span"- />- {{/if}}+ <PluginOutlet+ @name="after-topic-footer-buttons"+ @outletArgs={{lazyHash topic=this.topic}}+ @connectorTagName="span"+ /></div></template>}