DEV: Add tag argument to extra-nav-item outlet (#23815)

This will make it easier for themes/plugins to introduce nav items which work correctly on tag discovery routes
This commit is contained in:
David Taylor 2023-10-06 20:10:55 +01:00 committed by GitHub
parent 478e738bfd
commit 77e1d69b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -12,6 +12,7 @@
@navItems={{this.navItems}}
@filterMode={{this.filterMode}}
@category={{this.category}}
@tag={{this.tag}}
/>
{{/unless}}

View File

@ -9,5 +9,9 @@
<PluginOutlet
@name="extra-nav-item"
@connectorTagName="li"
@outletArgs={{hash category=this.category filterMode=this.filterMode}}
@outletArgs={{hash
category=this.category
tag=this.tag
filterMode=this.filterMode
}}
/>

View File

@ -17,7 +17,11 @@
<PluginOutlet
@name="extra-nav-item"
@connectorTagName="li"
@outletArgs={{hash category=this.category filterMode=this.filterMode}}
@outletArgs={{hash
category=this.category
tag=this.tag
filterMode=this.filterMode
}}
/>
</ul>
{{/if}}