Skip to content

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

DEV: add before and after mobile categories outlet (#29238)

Krisda571b6ac5a5
diff --git a/app/assets/javascripts/discourse/app/templates/mobile/components/categories-only.hbs b/app/assets/javascripts/discourse/app/templates/mobile/components/categories-only.hbs
index 4766c96fc08..0b820b7a736 100644
--- a/app/assets/javascripts/discourse/app/templates/mobile/components/categories-only.hbs
+++ b/app/assets/javascripts/discourse/app/templates/mobile/components/categories-only.hbs
@@ -1,9 +1,14 @@
{{#if this.categories}}
{{#if this.filteredCategories}}
<div class="category-list {{if this.showTopics 'with-topics'}}">
- {{#each this.filteredCategories as |c|}}
- <ParentCategoryRow @category={{c}} @showTopics={{this.showTopics}} />
- {{/each}}
+ <PluginOutlet
+ @name="mobile-categories"
+ @outletArgs={{hash categories=this.filteredCategories}}
+ >
+ {{#each this.filteredCategories as |c|}}
+ <ParentCategoryRow @category={{c}} @showTopics={{this.showTopics}} />
+ {{/each}}
+ </PluginOutlet>
</div>
{{/if}}