diff --git a/assets/vue/app/shared/components/layout/Sidebar.vue b/assets/vue/app/shared/components/layout/Sidebar.vue index 3e06c94..bce2e03 100644 --- a/assets/vue/app/shared/components/layout/Sidebar.vue +++ b/assets/vue/app/shared/components/layout/Sidebar.vue @@ -9,22 +9,12 @@ @@ -43,8 +33,7 @@ ClockIcon, Cog6ToothIcon, ComputerDesktopIcon - } from '@heroicons/vue/24/outline'; - import MenuItem from './sidebar/MenuItem.vue'; + } from '@heroicons/vue/24/solid'; import MenuGroup from './sidebar/MenuGroup.vue'; const route = useRoute(); @@ -55,22 +44,6 @@ } }); - const isActiveRoute = path => { - return route.path === path; - }; - - const isActive = item => { - if (!item.to) { - return item.subItems?.some(subItem => route.path === subItem.to) || false; - } - - if (item.to === '/') { - return route.path === '/' || ['/add', '/import', '/discover'].includes(route.path); - } - - return route.path.startsWith(item.to); - }; - const menuItems = [ { icon: BookOpenIcon, @@ -90,17 +63,20 @@ { icon: ArrowsRightLeftIcon, text: 'Convertir CBR en CBZ', - to: '/convert' + to: '/convert', + id: 'convert' }, { icon: CalendarIcon, text: 'Calendrier', - to: '/calendar' + to: '/calendar', + id: 'calendar' }, { icon: ClockIcon, text: 'Activité', to: '/activity', + id: 'activity', badge: '3' }, { diff --git a/assets/vue/app/shared/components/layout/sidebar/MenuGroup.vue b/assets/vue/app/shared/components/layout/sidebar/MenuGroup.vue index 9364fd8..beb0223 100644 --- a/assets/vue/app/shared/components/layout/sidebar/MenuGroup.vue +++ b/assets/vue/app/shared/components/layout/sidebar/MenuGroup.vue @@ -14,9 +14,12 @@ }">