feat: add Role Editor page

This commit is contained in:
Zhi
2026-03-12 11:45:30 +00:00
parent bfaf9469e1
commit f6460e2d70
3 changed files with 189 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ export default function Sidebar({ user, onLogout }: Props) {
{ to: '/projects', icon: '📁', label: 'Projects' },
{ to: '/notifications', icon: '🔔', label: 'Notifications' + (unreadCount > 0 ? ' (' + unreadCount + ')' : '') },
{ to: '/monitor', icon: '📡', label: 'Monitor' },
...(user.is_admin ? [{ to: '/roles', icon: '🔐', label: 'Roles' }] : []),
] : [
{ to: '/monitor', icon: '📡', label: 'Monitor' },
]