Hide favorite list edit menu
This commit is contained in:
parent
188c97ae8f
commit
e8d26be1b1
2 changed files with 12 additions and 3 deletions
|
@ -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>
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue