Skip to content

Commit

Permalink
Merge pull request #322 from m0-foundation/fix/WEB3-1133-sidebar-acti…
Browse files Browse the repository at this point in the history
…ve-links

WEB3 1133 fix sidebar active links
  • Loading branch information
ernaneluis authored Aug 21, 2024
2 parents 4d5c38d + ec58f7d commit e198c0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/layout/LayoutSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
:to="item.path"
:class="{
'notification-dot': item.notification,
active: currentRoute?.path === item.path,
active: item.exactRoute
? currentRoute?.path === item.path
: currentRoute?.path?.includes(item.path),
}"
:data-test="item.dataTest"
>
Expand Down Expand Up @@ -206,6 +208,7 @@ const mainMenuItems = computed(() => {
path: "/proposals/",
isShow: isAuctionNotActive.value,
dataTest: "sidebar-link-proposals",
exactRoute: true,
},
{
title: "All proposals",
Expand Down

0 comments on commit e198c0e

Please sign in to comment.