thelounge/client/components/MessageTypes/topic.vue

34 lines
622 B
Vue
Raw Normal View History

2018-07-10 11:10:37 +02:00
<template>
2018-07-09 12:44:12 +02:00
<span class="content">
<template v-if="message.from && message.from.nick">
2018-07-29 19:57:14 +02:00
<Username :user="message.from" />
2018-07-09 12:44:12 +02:00
has changed the topic to:
</template>
<template v-else>
The topic is:
</template>
<span
v-if="message.text"
2018-07-19 19:44:24 +02:00
class="new-topic"><ParsedMessage
:network="network"
2018-07-29 19:57:14 +02:00
:message="message" /></span>
2018-07-09 12:44:12 +02:00
</span>
</template>
<script>
2018-07-12 10:41:40 +02:00
import ParsedMessage from "../ParsedMessage.vue";
2018-07-09 12:44:12 +02:00
import Username from "../Username.vue";
export default {
name: "MessageTypeTopic",
components: {
2018-07-12 10:41:40 +02:00
ParsedMessage,
2018-07-09 12:44:12 +02:00
Username,
},
props: {
2018-07-19 19:44:24 +02:00
network: Object,
2018-07-09 12:44:12 +02:00
message: Object,
},
};
</script>