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"/>
<div class="more-container" :key="n.id + 'child'">
<ul class="menu-list can-be-hidden">
<li v-for="l in n.lists" :key="l.id">
<router-link
:to="{ name: 'list.index', params: { listId: l.id} }"
:class="{'router-link-exact-active': currentList.id === l.id}">
<span class="name">
<span
class="color-bubble"
v-if="l.hexColor !== ''"
:style="{ backgroundColor: l.hexColor }">
<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
:to="{ name: 'list.index', params: { listId: l.id} }"
:class="{'router-link-exact-active': currentList.id === l.id}">
<span class="name">
<span
class="color-bubble"
v-if="l.hexColor !== ''"
:style="{ backgroundColor: l.hexColor }">
</span>
{{l.title}}
</span>
{{l.title}}
</span>
</router-link>
</li>
</router-link>
</li>
</template>
</ul>
<label class="hidden-hint" :for="n.id + 'checker'">
Show hidden lists ({{n.lists.length}})...