Fix archived lists still showing up in the side menu
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-08-15 22:28:38 +02:00
parent dc2ac0cd3d
commit 42500da8a9
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 17 additions and 13 deletions

View File

@ -191,20 +191,24 @@
class="checkinput"/> class="checkinput"/>
<div class="more-container" :key="n.id + 'child'"> <div class="more-container" :key="n.id + 'child'">
<ul class="menu-list can-be-hidden"> <ul class="menu-list can-be-hidden">
<li v-for="l in n.lists" :key="l.id"> <template v-for="l in n.lists">
<router-link <!-- This is a bit ugly but vue wouldn't want to let me filter this - probably because the lists
:to="{ name: 'list.index', params: { listId: l.id} }" are nested inside of the namespaces makes it a lot harder.-->
:class="{'router-link-exact-active': currentList.id === l.id}"> <li v-if="!l.isArchived" :key="l.id">
<span class="name"> <router-link
<span :to="{ name: 'list.index', params: { listId: l.id} }"
class="color-bubble" :class="{'router-link-exact-active': currentList.id === l.id}">
v-if="l.hexColor !== ''" <span class="name">
:style="{ backgroundColor: l.hexColor }"> <span
class="color-bubble"
v-if="l.hexColor !== ''"
:style="{ backgroundColor: l.hexColor }">
</span>
{{l.title}}
</span> </span>
{{l.title}} </router-link>
</span> </li>
</router-link> </template>
</li>
</ul> </ul>
<label class="hidden-hint" :for="n.id + 'checker'"> <label class="hidden-hint" :for="n.id + 'checker'">
Show hidden lists ({{n.lists.length}})... Show hidden lists ({{n.lists.length}})...