Use vue's conditional classes
This commit is contained in:
parent
d97356e65a
commit
b963fe3cf0
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<span
|
||||
:class="['user', $options.filters.colorClass(user.nick), active ? 'active' : '']"
|
||||
:class="['user', $options.filters.colorClass(user.nick), { active: active }]"
|
||||
:data-name="user.nick"
|
||||
role="button"
|
||||
v-on="onHover ? { mouseover: hover } : {}">{{ user.mode }}{{ user.nick }}</span>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<span
|
||||
:class="['user', $options.filters.colorClass(user.original.nick), active ? 'active' : '']"
|
||||
:class="['user', $options.filters.colorClass(user.original.nick), { active: active }]"
|
||||
:data-name="user.original.nick"
|
||||
role="button"
|
||||
@mouseover="hover"
|
||||
|
Loading…
Reference in New Issue
Block a user