mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
30 lines
752 B
Vue
30 lines
752 B
Vue
<template>
|
|
<div
|
|
v-if="!network.isCollapsed || channel.highlight || channel.type === 'lobby' || (activeChannel && channel === activeChannel.channel)"
|
|
:class="[ channel.type, { active: activeChannel && channel === activeChannel.channel } ]"
|
|
:aria-label="channel.name"
|
|
:title="channel.name"
|
|
:data-id="channel.id"
|
|
:data-target="'#chan-' + channel.id"
|
|
:aria-controls="'#chan-' + channel.id"
|
|
:aria-selected="activeChannel && channel === activeChannel.channel"
|
|
class="chan"
|
|
role="tab"
|
|
>
|
|
<slot
|
|
:network="network"
|
|
:channel="channel"
|
|
:activeChannel="activeChannel"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "ChannelWrapper",
|
|
props: {
|
|
network: Object,
|
|
channel: Object,
|
|
activeChannel: Object,
|
|
},
|
|
};
|
|
</script>
|