Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDX-1657 Fixed Nav drawer dropdown #917

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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