mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-29 03:42:20 +02:00
29 lines
542 B
Vue
29 lines
542 B
Vue
<template v-elseif="message.type === 'message'">
|
|
<span class="content">
|
|
<template v-if="message.self">
|
|
<i v-html="$options.filters.parse(message.text)"/>
|
|
</template>
|
|
<template v-else>
|
|
<Username :user="message.from"/>
|
|
is away
|
|
<i
|
|
class="away-message"
|
|
v-html="'(' + $options.filters.parse(message.text) + ')'"/>
|
|
</template>
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
import Username from "../Username.vue";
|
|
|
|
export default {
|
|
name: "MessageTypeAway",
|
|
components: {
|
|
Username,
|
|
},
|
|
props: {
|
|
message: Object,
|
|
},
|
|
};
|
|
</script>
|