diff --git a/app/assets/javascripts/admin/addon/components/admin-plugin-config-page.gjs b/app/assets/javascripts/admin/addon/components/admin-plugin-config-page.gjs index 262101958d5..17f9b477587 100644 --- a/app/assets/javascripts/admin/addon/components/admin-plugin-config-page.gjs +++ b/app/assets/javascripts/admin/addon/components/admin-plugin-config-page.gjs @@ -24,6 +24,10 @@ export default class AdminPluginConfigPage extends Component { return classes.join(" "); } + get actionsOutletName() { + return `admin-plugin-config-page-actions-${this.args.plugin.kebabCaseName}`; + } + linkText(navLink) { if (navLink.label) { return i18n(navLink.label); @@ -68,10 +72,12 @@ export default class AdminPluginConfigPage extends Component { {{/if}} <:actions as |actions|> - +
+ +
diff --git a/app/assets/javascripts/admin/addon/models/admin-plugin.js b/app/assets/javascripts/admin/addon/models/admin-plugin.js index 33730888da8..02d940d9470 100644 --- a/app/assets/javascripts/admin/addon/models/admin-plugin.js +++ b/app/assets/javascripts/admin/addon/models/admin-plugin.js @@ -24,6 +24,10 @@ export default class AdminPlugin { return this.name.replaceAll("-", "_"); } + get kebabCaseName() { + return this.name.replaceAll(" ", "-").replaceAll("_", "-"); + } + get translatedCategoryName() { // We do this because the site setting list is grouped by category, // with plugins that have their root site setting key defined as `plugins:` diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js index 68df5e41c61..2fbc231a7c7 100644 --- a/plugins/chat/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js +++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js @@ -20,7 +20,7 @@ export default { ]); api.renderInOutlet( - "admin-plugin-config-page-actions", + "admin-plugin-config-page-actions-chat", ChatAdminPluginActions ); });