A platform for community discussion. Free, open, simple.
DEV: Update/add plugin outlets to ParentCategoryRow to remove template overrides (#31395)
Juan David Martínez Cubillos006b5b13d9ee
diff --git a/app/assets/javascripts/discourse/app/components/parent-category-row.hbs b/app/assets/javascripts/discourse/app/components/parent-category-row.hbsindex 71e4e5860f2..14a8e7f5096 100644--- a/app/assets/javascripts/discourse/app/components/parent-category-row.hbs+++ b/app/assets/javascripts/discourse/app/components/parent-category-row.hbs@@ -25,6 +25,10 @@<th class="main-link"><CategoryTitleLink @category={{this.category}} /></th>+ <PluginOutlet+ @name="category-list-after-title-mobile-section"+ @outletArgs={{hash category=this.category}}+ /></tr>{{#if this.category.description_excerpt}}<tr class="category-description">@@ -165,41 +169,51 @@@outletArgs={{hash category=this.category}}/>- <td class="topics">- <div title={{this.category.statTitle}}>{{html-safe- this.category.stat- }}</div>- <CategoryUnread- @category={{this.category}}- @tagName="div"- @unreadTopicsCount={{this.unreadTopicsCount}}- @newTopicsCount={{this.newTopicsCount}}- class="unread-new"- />- </td>+ <PluginOutlet+ @name="category-list-topics-wrapper"+ @outletArgs={{hash category=this.category}}+ >+ <td class="topics">+ <div title={{this.category.statTitle}}>{{html-safe+ this.category.stat+ }}</div>+ <CategoryUnread+ @category={{this.category}}+ @tagName="div"+ @unreadTopicsCount={{this.unreadTopicsCount}}+ @newTopicsCount={{this.newTopicsCount}}+ class="unread-new"+ />+ </td>+ </PluginOutlet><PluginOutlet@name="category-list-after-topics-section"@outletArgs={{hash category=this.category}}/>- {{#unless this.isMuted}}- {{#if this.showTopics}}- <td class="latest">- {{#each this.category.featuredTopics as |t|}}- {{#if this.site.useGlimmerTopicList}}- <TopicList::FeaturedTopic @topic={{t}} />- {{else}}- <FeaturedTopic @topic={{t}} />- {{/if}}- {{/each}}- </td>- <PluginOutlet- @name="category-list-after-latest-section"- @outletArgs={{hash category=this.category}}- />- {{/if}}- {{/unless}}+ <PluginOutlet+ @name="category-list-latest-wrapper"+ @outletArgs={{hash category=this.category showTopics=this.showTopics}}+ >+ {{#unless this.isMuted}}+ {{#if this.showTopics}}+ <td class="latest">+ {{#each this.category.featuredTopics as |t|}}+ {{#if this.site.useGlimmerTopicList}}+ <TopicList::FeaturedTopic @topic={{t}} />+ {{else}}+ <FeaturedTopic @topic={{t}} />+ {{/if}}+ {{/each}}+ </td>+ <PluginOutlet+ @name="category-list-after-latest-section"+ @outletArgs={{hash category=this.category}}+ />+ {{/if}}+ {{/unless}}+ </PluginOutlet></tr>{{/if}}{{/unless}}\ No newline at end of file