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:
Alan Guo Xiang Tan 2024-02-22 12:58:13 +08:00 committed by GitHub
parent 368bd2697a
commit 867c2989d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}}