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