DEV: Ween off deprecated plugin nav mode option (#1095)

We have removed this flag in core. All plugins now use the "top mode" for their navigation. A backwards-compatible change has been made in core while we remove the usage from plugins.
This commit is contained in:
Ted Johansson 2025-01-28 12:04:32 +08:00 committed by GitHub
parent a53719ab8e
commit 45eabedf47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,4 @@
< 3.4.0.beta4-dev: a53719ab8eb071459f215227421b3ea4987e5f87
< 3.4.0.beta4-dev: 20612fde52d3f740cad64823ef8aadb0748b567f
< 3.4.0.beta3-dev: decf1bb49d737ea15308400f22f89d1d1e71d13d
< 3.4.0.beta1-dev: 9d887ad4ace8e33c3fe7dbb39237e882c08b4f0b

View File

@ -1,4 +1,3 @@
import { PLUGIN_NAV_MODE_TOP } from "discourse/lib/admin-plugin-config-nav";
import { withPluginApi } from "discourse/lib/plugin-api";
export default {
@ -11,7 +10,7 @@ export default {
}
withPluginApi("1.1.0", (api) => {
api.addAdminPluginConfigurationNav("discourse-ai", PLUGIN_NAV_MODE_TOP, [
api.addAdminPluginConfigurationNav("discourse-ai", [
{
label: "discourse_ai.usage.short_title",
route: "adminPlugins.show.discourse-ai-usage",