hardlounge/client/components/UsernameFiltered.vue
2019-02-12 12:48:45 +02:00

25 lines
466 B
Vue

<template>
<span
:class="['user', $options.filters.colorClass(user.original.nick), { active: active }]"
:data-name="user.original.nick"
role="button"
@mouseover="hover"
v-html="user.original.mode + user.string" />
</template>
<script>
export default {
name: "UsernameFiltered",
props: {
user: Object,
active: Boolean,
onHover: Function,
},
methods: {
hover() {
this.onHover ? this.onHover(this.user.original) : null;
},
},
};
</script>