Skip to content

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

DEV: Add `topic-map` plugin outlet wrapper (#31168)

Angus McLeodfe4c33323f17
diff --git a/app/assets/javascripts/discourse/app/components/topic-map/index.gjs b/app/assets/javascripts/discourse/app/components/topic-map/index.gjs
index 5b929ed8d9d..de23872c883 100644
--- a/app/assets/javascripts/discourse/app/components/topic-map/index.gjs
+++ b/app/assets/javascripts/discourse/app/components/topic-map/index.gjs
@@ -5,32 +5,37 @@ import TopicMapSummary from "discourse/components/topic-map/topic-map-summary";
const TopicMap = <template>
{{#unless @model.postStream.loadingFilter}}
- <section class="topic-map__contents">
- <TopicMapSummary
- @topic={{@model}}
- @topicDetails={{@topicDetails}}
- @postStream={{@postStream}}
- />
- </section>
-
- <section class="topic-map__additional-contents toggle-summary">
- <PluginOutlet
- @name="topic-map-expanded-after"
- @defaultGlimmer={{true}}
- @outletArgs={{hash topic=@model postStream=@postStream}}
- />
- </section>
-
- {{#if @showPMMap}}
- <section class="topic-map__private-message-map">
- <PrivateMessageMap
+ <PluginOutlet
+ @name="topic-map"
+ @outletArgs={{hash topic=@model postStream=@postStream}}
+ >
+ <section class="topic-map__contents">
+ <TopicMapSummary
+ @topic={{@model}}
@topicDetails={{@topicDetails}}
- @showInvite={{@showInvite}}
- @removeAllowedGroup={{@removeAllowedGroup}}
- @removeAllowedUser={{@removeAllowedUser}}
+ @postStream={{@postStream}}
+ />
+ </section>
+
+ <section class="topic-map__additional-contents toggle-summary">
+ <PluginOutlet
+ @name="topic-map-expanded-after"
+ @defaultGlimmer={{true}}
+ @outletArgs={{hash topic=@model postStream=@postStream}}
/>
</section>
- {{/if}}
+
+ {{#if @showPMMap}}
+ <section class="topic-map__private-message-map">
+ <PrivateMessageMap
+ @topicDetails={{@topicDetails}}
+ @showInvite={{@showInvite}}
+ @removeAllowedGroup={{@removeAllowedGroup}}
+ @removeAllowedUser={{@removeAllowedUser}}
+ />
+ </section>
+ {{/if}}
+ </PluginOutlet>
{{/unless}}
</template>;