MSP-3106 add applications page in menu
This commit is contained in:
1 parent
114c3964d0
commit
1ad82929fa
2 files changed
+17
-2
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import {
|
||||
LockOutlined,
|
||||
LogoutOutlined,
|
||||
ProfileOutlined
|
||||
ProfileOutlined,
|
||||
AppstoreAddOutlined
|
||||
} from '@ant-design/icons'
|
||||
import { ConfigProvider, Layout, Menu, Spin } from 'antd'
|
||||
import { useContext, useEffect, useState } from 'react'
|
||||
@@ -81,6 +82,12 @@ const LayoutComponent = () => {
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Группа приложений',
|
||||
key: 'applications',
|
||||
className: hideItem([PermissionKeysType.read]),
|
||||
icon: <AppstoreAddOutlined />
|
||||
},
|
||||
{
|
||||
label: 'Доступы приложений',
|
||||
key: 'appAccess',
|
||||
@@ -169,6 +176,9 @@ const LayoutComponent = () => {
|
||||
case MenuItemKeysType.roles:
|
||||
navigate(routePaths.roles)
|
||||
break
|
||||
case MenuItemKeysType.applications:
|
||||
navigate(routePaths.applications)
|
||||
break
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@ export enum MenuItemKeysType {
|
||||
appAccess = 'appAccess',
|
||||
roles = 'roles',
|
||||
logout = 'logout',
|
||||
profile = 'profile'
|
||||
profile = 'profile',
|
||||
applications = 'applications',
|
||||
}
|
||||
|
||||
interface MenuItem {
|
||||
@@ -42,6 +43,10 @@ export const menuKeys: Record<MenuItemKeysType, MenuItem> = {
|
||||
[MenuItemKeysType.profile]: {
|
||||
key: MenuItemKeysType.profile,
|
||||
parent: ['']
|
||||
},
|
||||
[MenuItemKeysType.applications]: {
|
||||
key: MenuItemKeysType.applications,
|
||||
parent: ['']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user