File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,12 +120,12 @@ const navigationItems = [
120120// Helper function to check if a route is active
121121const isRouteActive = (url : string ) => {
122122 const currentPath = router .currentRoute .value .path
123-
123+
124124 // Special case: '/teams' should only match exactly '/teams', not '/teams/manage/...'
125125 if (url === ' /teams' ) {
126126 return currentPath === ' /teams'
127127 }
128-
128+
129129 // For all other routes, use startsWith for sub-route matching
130130 return currentPath .startsWith (url )
131131}
@@ -421,7 +421,7 @@ onUnmounted(() => {
421421 <DropdownMenuTrigger as-child >
422422 <SidebarMenuButton size =" lg" class =" data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground" >
423423 <Avatar class =" h-8 w-8 rounded-lg" >
424- <AvatarImage src =" https://www.shadcn-vue.com/avatars/shadcn .jpg" :alt =" userName" />
424+ <AvatarImage src =" /images/user .jpg" :alt =" userName" />
425425 <AvatarFallback class =" rounded-lg" >
426426 {{ userLoading ? '...' : getUserInitials(userName || userEmail) }}
427427 </AvatarFallback >
You can’t perform that action at this time.
0 commit comments