Fix archived lists still showing up in the side menu
This commit is contained in:
parent
dc2ac0cd3d
commit
42500da8a9
1 changed files with 17 additions and 13 deletions
30
src/App.vue
30
src/App.vue
|
@ -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}})...
|
||||||
|
|
Loading…
Reference in a new issue