thelounge/client/components/MessageTypes/invite.vue

26 lines
469 B
Vue
Raw Normal View History

2018-07-09 12:44:12 +02:00
<template v-elseif="message.type === 'message'">
<span class="content">
<Username :user="message.from"/>
invited
<span v-if="message.invitedYou">you</span>
<Username
v-else
:user="message.target"/>
to <span v-html="$options.filters.parse(message.channel)"/>
</span>
</template>
<script>
import Username from "../Username.vue";
export default {
name: "MessageTypeInvite",
components: {
Username,
},
props: {
message: Object,
},
};
</script>