Change (parted) to a class name
This commit is contained in:
parent
199df6b729
commit
a26fcb45b4
@ -4,7 +4,6 @@
|
||||
:channel="channel"
|
||||
:active-channel="activeChannel">
|
||||
<span class="name">{{ channel.name }}</span>
|
||||
<span v-if="channel.type === 'channel' && channel.state === 0">(parted)</span>
|
||||
<span
|
||||
v-if="channel.unread"
|
||||
:class="{ highlight: channel.highlight }"
|
||||
|
@ -1,7 +1,11 @@
|
||||
<template>
|
||||
<div
|
||||
v-if="!network.isCollapsed || channel.highlight || channel.type === 'lobby' || (activeChannel && channel === activeChannel.channel)"
|
||||
:class="[ channel.type, { active: activeChannel && channel === activeChannel.channel } ]"
|
||||
:class="[
|
||||
channel.type,
|
||||
{ active: activeChannel && channel === activeChannel.channel },
|
||||
{ 'channel-is-parted': channel.type === 'channel' && channel.state === 0 }
|
||||
]"
|
||||
:aria-label="getAriaLabel()"
|
||||
:title="getAriaLabel()"
|
||||
:data-id="channel.id"
|
||||
|
Loading…
Reference in New Issue
Block a user