[nav][bug] disabled options showing up on mobile

This commit is contained in:
Avris 2021-09-14 20:42:15 +02:00
parent 89e97b8b04
commit 9f055a40d4
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@
</router-link>
</div>
<div class="d-block d-md-none btn-group-vertical btn-block mb-2 w-100">
<router-link v-for="{name, icon, route} in links" :key="name"
<router-link v-for="{name, icon, route, condition} in links" :key="name"
v-if="condition === undefined || condition === true"
:to="buildRoute(route)"
:class="['btn', isActiveRoute(route) ? 'btn-primary' : 'btn-outline-primary']">
<Icon :v="icon"/>