FIX: Only include custom plugin config routes in tabs for old show page (#31213)

Same as #31192, but for plugins that are not yet converted to the new show page. 🙏
This commit is contained in:
Ted Johansson 2025-02-06 10:03:01 +08:00 committed by GitHub
parent c5bead4369
commit af43f6135e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,12 @@ export default class AdminPluginsController extends Controller {
// while we convert plugins to use_new_show_route
get allAdminRoutes() {
return this.model
.filter((plugin) => plugin?.enabled && plugin?.adminRoute)
.filter(
(plugin) =>
plugin?.enabled &&
plugin?.adminRoute &&
!plugin?.adminRoute?.auto_generated
)
.map((plugin) => {
return Object.assign(plugin.adminRoute, { plugin_id: plugin.id });
});