mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
FIX: addNavigationBarItem api example (#21510)
* FIX: addNavigationBarItem api example * Update app/assets/javascripts/discourse/app/lib/plugin-api.js Co-authored-by: Jarek Radosz <jradosz@gmail.com> --------- Co-authored-by: Sam <sam.saffron@gmail.com> Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
parent
e9efeea264
commit
f160f073b0
@ -1097,7 +1097,7 @@ class PluginApi {
|
||||
* customFilter: (category, args, router) => { return category && category.name !== 'bug' }
|
||||
* customHref: (category, args, router) => { if (category && category.name) === 'not-a-bug') return "/a-feature"; },
|
||||
* before: "top",
|
||||
* forceActive(category, args, router) => router.currentURL === "/a/b/c/d";
|
||||
* forceActive: (category, args, router) => router.currentURL === "/a/b/c/d",
|
||||
* })
|
||||
*/
|
||||
addNavigationBarItem(item) {
|
||||
|
Loading…
Reference in New Issue
Block a user