Hide collapse button if there are no channels

This commit is contained in:
Pavel Djundik 2018-07-08 11:54:35 +03:00 committed by Pavel Djundik
parent d4a23ffc98
commit 631fd6138c

View file

@ -13,12 +13,17 @@
>
<template v-if="channel.type === 'lobby'">
<button
v-if="network.channels.length > 1"
:aria-controls="'network-' + network.uuid"
class="collapse-network"
aria-label="Collapse"
aria-expanded="true">
aria-expanded="true"
>
<span class="collapse-network-icon"/>
</button>
<span
v-else
class="collapse-network"/>
<div class="lobby-wrap">
<span
:title="channel.name"