Skip to content

Commit

Permalink
highlight active navbar
Browse files Browse the repository at this point in the history
(cherry picked from commit 3c4720f)
  • Loading branch information
Milos authored and RadovanTomik committed Feb 19, 2024
1 parent 529b119 commit dc61414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/NavigationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
>
<router-link
class="nav-link active nav-option"
:class="$route.path === '/admin' ? 'text-primary' : ''"
to="/admin"
>
<i class="bi bi-house-gear" />
Expand All @@ -44,6 +45,7 @@
>
<router-link
class="nav-link active nav-option"
:class="$route.path === '/researcher' ? 'text-primary-light' : ''"
to="/researcher"
>
<i class="bi bi-folder2" />
Expand All @@ -56,6 +58,7 @@
>
<router-link
class="nav-link active nav-option"
:class="$route.path === '/biobanker' ? 'text-primary-light' : ''"
to="/biobanker"
>
<i class="bi bi-hospital" />
Expand Down

0 comments on commit dc61414

Please sign in to comment.