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

This commit is contained in:
Angus McLeod
2025-02-06 16:59:53 +01:00
committed by GitHub
parent aa222ef7b8
commit fe4c33323f

View File

@ -5,32 +5,37 @@ import TopicMapSummary from "discourse/components/topic-map/topic-map-summary";
const TopicMap = <template> const TopicMap = <template>
{{#unless @model.postStream.loadingFilter}} {{#unless @model.postStream.loadingFilter}}
<section class="topic-map__contents"> <PluginOutlet
<TopicMapSummary @name="topic-map"
@topic={{@model}} @outletArgs={{hash topic=@model postStream=@postStream}}
@topicDetails={{@topicDetails}} >
@postStream={{@postStream}} <section class="topic-map__contents">
/> <TopicMapSummary
</section> @topic={{@model}}
<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
@topicDetails={{@topicDetails}} @topicDetails={{@topicDetails}}
@showInvite={{@showInvite}} @postStream={{@postStream}}
@removeAllowedGroup={{@removeAllowedGroup}}
@removeAllowedUser={{@removeAllowedUser}}
/> />
</section> </section>
{{/if}}
<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
@topicDetails={{@topicDetails}}
@showInvite={{@showInvite}}
@removeAllowedGroup={{@removeAllowedGroup}}
@removeAllowedUser={{@removeAllowedUser}}
/>
</section>
{{/if}}
</PluginOutlet>
{{/unless}} {{/unless}}
</template>; </template>;