Fix archived lists still showing up in the side menu

This commit is contained in:
kolaente 2020-08-15 22:28:38 +02:00
parent dc2ac0cd3d
commit 42500da8a9
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -191,7 +191,10 @@
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">
<!-- This is a bit ugly but vue wouldn't want to let me filter this - probably because the lists
are nested inside of the namespaces makes it a lot harder.-->
<li v-if="!l.isArchived" :key="l.id">
<router-link <router-link
:to="{ name: 'list.index', params: { listId: l.id} }" :to="{ name: 'list.index', params: { listId: l.id} }"
:class="{'router-link-exact-active': currentList.id === l.id}"> :class="{'router-link-exact-active': currentList.id === l.id}">
@ -205,6 +208,7 @@
</span> </span>
</router-link> </router-link>
</li> </li>
</template>
</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}})...