mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
c5bead4369
commit
af43f6135e
@ -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 });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user