From 98481e4f8a981af3ceb5426584ec47cbc17d0713 Mon Sep 17 00:00:00 2001 From: romanskijdev Date: Thu, 16 Jul 2026 13:54:04 +0300 Subject: [PATCH] Upodate flow nodes tutorial --- src/components/Layout/Sidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Layout/Sidebar.tsx b/src/components/Layout/Sidebar.tsx index 2199ce9..502129f 100644 --- a/src/components/Layout/Sidebar.tsx +++ b/src/components/Layout/Sidebar.tsx @@ -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) => {