Upodate flow nodes tutorial
Deploy Frontend / build-and-deploy (push) Successful in 26s
Details
Deploy Frontend / build-and-deploy (push) Successful in 26s
Details
This commit is contained in:
parent
404f324f5c
commit
98481e4f8a
|
|
@ -17,6 +17,7 @@ import {
|
|||
IconUserCog,
|
||||
IconCheck,
|
||||
IconBellRinging,
|
||||
IconBlocks,
|
||||
} from '@tabler/icons-react'
|
||||
import { useLocation, useNavigate } from 'react-router-dom'
|
||||
import { useAuth } from '@/hooks/useAuth'
|
||||
|
|
@ -54,13 +55,13 @@ const menuItems: MenuItem[] = [
|
|||
{ label: 'Исполнители', icon: IconUserCheck, path: '/executors' },
|
||||
]
|
||||
},
|
||||
{ label: 'Конструктор тем', icon: IconBlocks, path: '/nodes', adminOnly: true },
|
||||
{ label: 'Иерархия', icon: IconGitBranch, path: '/hierarchies', adminOnly: true },
|
||||
]
|
||||
},
|
||||
{ label: 'Настройки', icon: IconSettings, path: '/settings'},
|
||||
]
|
||||
|
||||
// 🆕 Рекурсивная фильтрация меню по роли
|
||||
function filterMenuByRole(items: MenuItem[], isObserver: boolean): MenuItem[] {
|
||||
return items
|
||||
.filter((item) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue