Hide favorite list edit menu

This commit is contained in:
kolaente 2021-05-19 17:26:05 +02:00
parent 188c97ae8f
commit e8d26be1b1
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 12 additions and 3 deletions

View file

@ -67,7 +67,8 @@
<a <a
class="icon is-small toggle-lists-icon" class="icon is-small toggle-lists-icon"
:class="{'active': typeof listsVisible[n.id] !== 'undefined' ? listsVisible[n.id] : true}" :class="{'active': typeof listsVisible[n.id] !== 'undefined' ? listsVisible[n.id] : true}"
@click="toggleLists(n.id)"> @click="toggleLists(n.id)"
>
<icon icon="chevron-down"/> <icon icon="chevron-down"/>
</a> </a>
<namespace-settings-dropdown :namespace="n" v-if="n.id > 0"/> <namespace-settings-dropdown :namespace="n" v-if="n.id > 0"/>
@ -100,7 +101,8 @@
<icon :icon="['far', 'star']" v-else/> <icon :icon="['far', 'star']" v-else/>
</span> </span>
</router-link> </router-link>
<list-settings-dropdown :list="l"/> <list-settings-dropdown :list="l" v-if="l.id > 0"/>
<span class="list-setting-spacer" v-else></span>
</li> </li>
</template> </template>
</ul> </ul>
@ -177,3 +179,10 @@ export default {
}, },
} }
</script> </script>
<style scoped>
.list-setting-spacer {
width: 32px;
flex-shrink: 0;
}
</style>

View file

@ -32,7 +32,7 @@
{{ currentList.title === '' ? 'Loading...' : currentList.title }} {{ currentList.title === '' ? 'Loading...' : currentList.title }}
</h1> </h1>
<list-settings-dropdown v-if="canWriteCurrentList" :list="currentList"/> <list-settings-dropdown v-if="canWriteCurrentList && currentList.id !== -1" :list="currentList"/>
</div> </div>
<div class="navbar-end"> <div class="navbar-end">