Skip to content

Commit

Permalink
Merge pull request #917 from bcgov/bugs/navDrawerFix
Browse files Browse the repository at this point in the history
EDX-1657 Fixed Nav drawer dropdown
  • Loading branch information
SodhiA1 authored Jul 25, 2023
2 parents 7c17224 + 21fe140 commit dbbf2d8
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions frontend/src/components/util/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,40 +50,43 @@
append-icon=""
@click="setActive(item)"
>
<template #activator>
<v-list-item>
<template #activator="{props}">
<v-list-item
v-bind="props"
>
<v-list-item-title
class="menuItem ml-4"
v-text="item.title"
/>
</v-list-item>
<v-list-item
v-for="subItem in item.items.filter(obj => obj.authorized)"
:id="stripWhitespace(subItem.title) + `MenuBtn`"
:key="subItem.title"
class="subMenuRow pl-9"
>
<router-link
:to="{ name: subItem.link }"
:target="subItem.newTab ? '_blank' : '_self'"
class="router"
>
<v-list-item>
<v-list-item-title
v-if="subItem.link === $route.name"
class="menuItem"
>
<strong>{{ subItem.title }}</strong>
</v-list-item-title>
<v-list-item-title
v-else
class="menuItem"
v-text="subItem.title"
/>
</v-list-item>
</router-link>
</v-list-item>
</template>

<v-list-item
v-for="subItem in item.items.filter(obj => obj.authorized)"
:id="stripWhitespace(subItem.title) + `MenuBtn`"
:key="subItem.title"
class="subMenuRow pl-9"
>
<router-link
:to="{ name: subItem.link }"
:target="subItem.newTab ? '_blank' : '_self'"
class="router"
>
<v-list-item>
<v-list-item-title
v-if="subItem.link === $route.name"
class="menuItem"
>
<strong>{{ subItem.title }}</strong>
</v-list-item-title>
<v-list-item-title
v-else
class="menuItem"
v-text="subItem.title"
/>
</v-list-item>
</router-link>
</v-list-item>
</v-list-group>
</div>
</v-list>
Expand Down

0 comments on commit dbbf2d8

Please sign in to comment.