{core,frontend}-app-api: fix route binding prio + disable through code
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user