mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
24 lines
429 B
Vue
24 lines
429 B
Vue
<template>
|
|
<span
|
|
:class="['user', $options.filters.colorClass(user.nick), active ? 'active' : '']"
|
|
:data-name="user.nick"
|
|
role="button">{{ user.mode }}{{ user.nick }}
|
|
@mouseover="hover"
|
|
></span>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "Username",
|
|
props: {
|
|
user: Object,
|
|
active: Boolean,
|
|
onHover: Function,
|
|
},
|
|
methods: {
|
|
hover() {
|
|
this.onHover ? this.onHover(this.user) : null;
|
|
},
|
|
},
|
|
};
|
|
</script>
|