A platform for community discussion. Free, open, simple.
FEATURE: Add plugin-outlet before/after sidebar sections (#25807)
Alan Guo Xiang Tan867c2989d708
diff --git a/app/assets/javascripts/discourse/app/components/sidebar.hbs b/app/assets/javascripts/discourse/app/components/sidebar.hbsindex f97759abcc3..918457ed914 100644--- a/app/assets/javascripts/discourse/app/components/sidebar.hbs+++ b/app/assets/javascripts/discourse/app/components/sidebar.hbs@@ -5,6 +5,8 @@<Sidebar::SwitchPanelButtons @buttons={{this.switchPanelButtons}} />{{/if}}+ <PluginOutlet @name="before-sidebar-sections" />+{{#if this.sidebarState.showMainPanel}}<Sidebar::Sections@currentUser={{this.currentUser}}@@ -18,6 +20,8 @@/>{{/if}}+ <PluginOutlet @name="after-sidebar-sections" />+{{#unless this.showSwitchPanelButtonsOnTop}}<Sidebar::SwitchPanelButtons @buttons={{this.switchPanelButtons}} />{{/unless}}