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>
{{#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>
{{/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}}
</template>;