diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index 5b03429..77dad7c 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -27,6 +27,7 @@ "sideMenu": { "dashboard": "Dashboard", "equipmentDocumentation": "Gerätedokumentation", + "consoles": "Konsolen", "groupTasks": { "menuCategory": "Gruppenaufgaben", "overview": "Kategorien", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index e0ed619..db43692 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -27,6 +27,7 @@ "sideMenu": { "dashboard": "Dashboard", "equipmentDocumentation": "Equipment Documentation", + "consoles": "Consoles", "groupTasks": { "menuCategory": "Group Tasks", "overview": "Categories", diff --git a/src/Components/AppRoutes/index.js b/src/Components/AppRoutes/index.js index b41ee98..8982450 100644 --- a/src/Components/AppRoutes/index.js +++ b/src/Components/AppRoutes/index.js @@ -21,6 +21,7 @@ const EquipmentDocumentationOverview = lazy(() => const ViewEquipmentDocumentations = lazy(() => import("../../Pages/EquipmentDocumentation/ViewEquipmentDocumentation") ); +const Consoles = lazy(() => import("../../Pages/Consoles")); function SuspenseFallback({ children }) { return ( @@ -231,6 +232,20 @@ export default function AppRoutes() { /> )} + {hasPermission( + appContext.userPermissions, + Constants.PERMISSIONS.CONSOLES.VIEW + ) && ( + + + + } + /> + )} + , + key: Constants.ROUTE_PATHS.CONSOLES, + }); + } + // group tasks let groupTasksGroup = { label: t("sideMenu.groupTasks.menuCategory"), diff --git a/src/Pages/Consoles/index.js b/src/Pages/Consoles/index.js new file mode 100644 index 0000000..fccfa15 --- /dev/null +++ b/src/Pages/Consoles/index.js @@ -0,0 +1,3 @@ +export default function Consoles() { + return <>; +} diff --git a/src/utils.js b/src/utils.js index 6441bef..e7d883c 100644 --- a/src/utils.js +++ b/src/utils.js @@ -59,6 +59,7 @@ export const Constants = { ADMIN_AREA_ROLES: "/admin-area/roles", ADMIN_AREA_LOGS: "/admin-area/logs", ADMIN_AREA_MANAGE: "/admin-area/manage", + CONSOLES: "/consoles", }, GROUP_TASKS_STATUS: { FINISHED: 1, @@ -139,6 +140,9 @@ export const Constants = { USER_PROFILE: { API_KEYS: "user_profile.api_keys", }, + CONSOLES: { + VIEW: "consoles.view", + }, }, SYSTEM_LOG_TYPE: { INFO: 0,