hardlounge/client/components/UsernameFiltered.vue

26 lines
465 B
Vue
Raw Normal View History

2018-07-08 15:02:36 -04:00
<template>
<span
2019-07-17 05:33:59 -04:00
:class="['user', $options.filters.colorClass(user.original.nick), {active: active}]"
2018-07-08 15:02:36 -04:00
:data-name="user.original.nick"
2018-07-08 16:08:08 -04:00
role="button"
@mouseover="hover"
v-html="user.original.mode + user.string"
/>
2018-07-08 15:02:36 -04:00
</template>
<script>
export default {
name: "UsernameFiltered",
props: {
user: Object,
active: Boolean,
2018-07-10 19:25:21 -04:00
onHover: Function,
},
methods: {
hover() {
this.onHover ? this.onHover(this.user.original) : null;
},
2018-07-08 15:02:36 -04:00
},
};
</script>