From aa5038a352af5029cdfcac553ae2db5c1249ae50 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 24 Apr 2023 12:00:22 +0100 Subject: [PATCH] DEV: Update plugin-api docs for new user menu (#20808) The updated user menu is the default for new sites, and will soon be enabled on older sites. This commit removes the 'EXPERIMENTAL' warning from the new `registerUserMenuTab` API, and adds a note to the `addUserMenuGlyph` documentation. --- app/assets/javascripts/discourse/app/lib/plugin-api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js index 2146c031d2c..ed2ca159f1b 100644 --- a/app/assets/javascripts/discourse/app/lib/plugin-api.js +++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js @@ -987,7 +987,7 @@ class PluginApi { } /** - * Adds a glyph to user menu after bookmarks + * Adds a glyph to the legacy user menu after bookmarks * WARNING: there is limited space there * * example: @@ -999,6 +999,7 @@ class PluginApi { * data: { url: `/some/path` }, * }); * + * To customize the new user menu, see api.registerUserMenuTab */ addUserMenuGlyph(glyph) { addUserMenuGlyph(glyph); @@ -2078,7 +2079,6 @@ class PluginApi { } /** - * EXPERIMENTAL. Do not use. * Registers a new tab in the user menu. This API method expects a callback * that should return a class inheriting from the class (UserMenuTab) that's * passed to the callback. See discourse/app/lib/user-menu/tab.js for