Dev #11
@@ -13,7 +13,6 @@ const navItems = computed(() => {
|
||||
{ label: 'Дашборд', icon: 'chart-bar', to: '/teacher' },
|
||||
{ label: 'Лекции', icon: 'book-2', to: '/teacher/lectures' },
|
||||
{ label: 'Аналитика', icon: 'chart-line', to: '/teacher/analytics' },
|
||||
{ label: 'Профиль', icon: 'user', to: '/profile' },
|
||||
]
|
||||
if (role === 'admin') return [
|
||||
{ label: 'Дашборд', icon: 'shield', to: '/admin' },
|
||||
@@ -25,7 +24,6 @@ const navItems = computed(() => {
|
||||
{ label: 'Главная', icon: 'home', to: '/' },
|
||||
{ label: 'Лекции', icon: 'books', to: '/catalog' },
|
||||
{ label: 'Мои', icon: 'clipboard-list', to: '/my-lectures' },
|
||||
{ label: 'Профиль', icon: 'user', to: '/profile' },
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
@@ -13,12 +13,10 @@ const navItems: NavItem[] = [
|
||||
{ label: 'Главная', icon: 'home', to: '/', roles: ['student'] },
|
||||
{ label: 'Каталог', icon: 'books', to: '/catalog', roles: ['student'] },
|
||||
{ label: 'Мои записи', icon: 'clipboard-list', to: '/my-lectures', roles: ['student'] },
|
||||
{ label: 'Профиль', icon: 'user', to: '/profile', roles: ['student'] },
|
||||
// Teacher
|
||||
{ label: 'Дашборд', icon: 'chart-bar', to: '/teacher', roles: ['teacher'] },
|
||||
{ label: 'Лекции', icon: 'book-2', to: '/teacher/lectures', roles: ['teacher'] },
|
||||
{ label: 'Аналитика', icon: 'chart-line', to: '/teacher/analytics', roles: ['teacher'] },
|
||||
{ label: 'Профиль', icon: 'user', to: '/profile', roles: ['teacher'] },
|
||||
// Admin
|
||||
{ label: 'Дашборд', icon: 'shield', to: '/admin', roles: ['admin'] },
|
||||
{ label: 'Пользователи', icon: 'users', to: '/admin/users', roles: ['admin'] },
|
||||
|
||||
Reference in New Issue
Block a user