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:
Kris 2023-05-15 00:11:42 -04:00 committed by GitHub
parent e9efeea264
commit f160f073b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {