mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
FEATURE: Add plugin-outlet before/after sidebar sections (#25807)
Why this change? We have been getting customisation requests about adding stuff before/after the sidebar sections so we are adding plugin outlets to support those requests.
This commit is contained in:
parent
368bd2697a
commit
867c2989d7
|
@ -5,6 +5,8 @@
|
||||||
<Sidebar::SwitchPanelButtons @buttons={{this.switchPanelButtons}} />
|
<Sidebar::SwitchPanelButtons @buttons={{this.switchPanelButtons}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<PluginOutlet @name="before-sidebar-sections" />
|
||||||
|
|
||||||
{{#if this.sidebarState.showMainPanel}}
|
{{#if this.sidebarState.showMainPanel}}
|
||||||
<Sidebar::Sections
|
<Sidebar::Sections
|
||||||
@currentUser={{this.currentUser}}
|
@currentUser={{this.currentUser}}
|
||||||
|
@ -18,6 +20,8 @@
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<PluginOutlet @name="after-sidebar-sections" />
|
||||||
|
|
||||||
{{#unless this.showSwitchPanelButtonsOnTop}}
|
{{#unless this.showSwitchPanelButtonsOnTop}}
|
||||||
<Sidebar::SwitchPanelButtons @buttons={{this.switchPanelButtons}} />
|
<Sidebar::SwitchPanelButtons @buttons={{this.switchPanelButtons}} />
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user