diff options
Diffstat (limited to 'src/env/router')
-rw-r--r-- | src/env/router/ibm.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/env/router/ibm.js b/src/env/router/ibm.js index 3a25650f..213920db 100644 --- a/src/env/router/ibm.js +++ b/src/env/router/ibm.js @@ -1,3 +1,15 @@ +import { remove } from 'lodash'; import routes from '@/router/routes'; -export default routes; +const customRoutes = routes.map(route => { + // Removes router definition that includes kvm + // in name property (main and console layouts) + + // TODO: will revisit this, removing the definition + // removes the route from the application but + // the component is still included in the final build + remove(route.children, ({ name }) => name.includes('kvm')); + return route; +}); + +export default customRoutes; |