{core,frontend}-app-api: fix route binding prio + disable through code

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-09-12 12:32:21 +02:00
parent fec4cd9876
commit ddbeace2a4
8 changed files with 132 additions and 17 deletions
@@ -251,6 +251,8 @@ app:
# point to the Catalog details page when the Scaffolder component details ref is used
# highlight-next-line
scaffolder.componentDetails: catalog.details
# explicitly disable the default route binding from the scaffolder to the catalog import page
scaffolder.registerComponent: false
```
We also have the ability to express this in code as an option to `createApp`, but you of course only need to use one of these two methods:
@@ -268,6 +270,7 @@ const app = createApp({
});
bind(scaffolder.externalRoutes, {
componentDetails: catalog.routes.details,
registerComponent: false,
});
},
// highlight-end