Change (parted) to a class name

This commit is contained in:
Pavel Djundik 2019-02-07 09:24:53 +02:00
parent 199df6b729
commit a26fcb45b4
2 changed files with 5 additions and 2 deletions

View File

@ -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 }"

View File

@ -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"