DEV: Add above-topic-list-item plugin outlet and pass topic in above-latest-topic-list-item args (#23431)

This commit does a couple of things:

1. Add a new plugin outlet, `above-topic-list-item`, to the `topic-list-item` component
2. Pass the topic in question as an outlet argument for the (existing) `above-latest-topic-list-item` outlet in the `latest-topic-list-item` component.
This commit is contained in:
Osama Sayegh 2023-10-10 12:36:37 +03:00 committed by GitHub
parent c1017a479b
commit fdd5e577d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,8 @@
<PluginOutlet @name="above-latest-topic-list-item" @connectorTagName="div" />
<PluginOutlet
@name="above-latest-topic-list-item"
@connectorTagName="div"
@outletArgs={{hash topic=this.topic}}
/>
<div class="topic-poster">
<UserLink @user={{this.topic.lastPosterUser}}>
{{avatar this.topic.lastPosterUser imageSize="large"}}

View File

@ -1 +1,5 @@
<PluginOutlet
@name="above-topic-list-item"
@outletArgs={{hash topic=this.topic}}
/>
{{this.topicListItemContents}}