mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
23 lines
431 B
Vue
23 lines
431 B
Vue
<template>
|
|
<span
|
|
: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>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "Username",
|
|
props: {
|
|
user: Object,
|
|
active: Boolean,
|
|
onHover: Function,
|
|
},
|
|
methods: {
|
|
hover() {
|
|
return this.onHover(this.user);
|
|
},
|
|
},
|
|
};
|
|
</script>
|