From 5e66470ca9d531d0b40445c06b92793ef9acc848 Mon Sep 17 00:00:00 2001 From: Youssef Date: Tue, 14 Dec 2021 11:37:20 +0100 Subject: [PATCH 1/2] fix: hide role route from the menu dd --- frontend/src/component/menu/routes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/menu/routes.js b/frontend/src/component/menu/routes.js index e26bdbdfa2..89d9fb9886 100644 --- a/frontend/src/component/menu/routes.js +++ b/frontend/src/component/menu/routes.js @@ -426,7 +426,8 @@ export const routes = [ component: ProjectRoles, type: 'protected', layout: 'main', - menu: { adminSettings: true }, + menu: {}, + hidden: true, }, { path: '/admin', From b524a6d075f36dc929a40f980220d741dcf00536 Mon Sep 17 00:00:00 2001 From: Youssef Date: Tue, 14 Dec 2021 11:59:07 +0100 Subject: [PATCH 2/2] fix: update snapshots --- .../menu/__tests__/__snapshots__/routes-test.jsx.snap | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap b/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap index f19b34f97b..ad801ba46d 100644 --- a/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap +++ b/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap @@ -376,17 +376,6 @@ Array [ "title": "Single Sign-On", "type": "protected", }, - Object { - "component": [Function], - "layout": "main", - "menu": Object { - "adminSettings": true, - }, - "parent": "/admin", - "path": "/admin/roles", - "title": "Project Roles", - "type": "protected", - }, Object { "component": [Function], "hidden": false,