mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
848186d14b
Move closing brackets on a new line in Vue files
58 lines
1.1 KiB
Vue
58 lines
1.1 KiB
Vue
<template>
|
|
<ChannelWrapper
|
|
:network="network"
|
|
:channel="channel"
|
|
:active-channel="activeChannel"
|
|
>
|
|
<span class="name">{{ channel.name }}</span>
|
|
<span
|
|
v-if="channel.unread"
|
|
:class="{ highlight: channel.highlight }"
|
|
class="badge"
|
|
>{{ channel.unread | roundBadgeNumber }}</span>
|
|
<template v-if="channel.type === 'channel'">
|
|
<span
|
|
v-if="channel.state === 0"
|
|
class="parted-channel-tooltip tooltipped tooltipped-w"
|
|
aria-label="Not currently joined">
|
|
<span class="parted-channel-icon" />
|
|
</span>
|
|
<span
|
|
class="close-tooltip tooltipped tooltipped-w"
|
|
aria-label="Leave"
|
|
>
|
|
<button
|
|
class="close"
|
|
aria-label="Leave"
|
|
/>
|
|
</span>
|
|
</template>
|
|
<template v-else>
|
|
<span
|
|
class="close-tooltip tooltipped tooltipped-w"
|
|
aria-label="Close"
|
|
>
|
|
<button
|
|
class="close"
|
|
aria-label="Close"
|
|
/>
|
|
</span>
|
|
</template>
|
|
</ChannelWrapper>
|
|
</template>
|
|
|
|
<script>
|
|
import ChannelWrapper from "./ChannelWrapper.vue";
|
|
|
|
export default {
|
|
name: "Channel",
|
|
components: {
|
|
ChannelWrapper,
|
|
},
|
|
props: {
|
|
activeChannel: Object,
|
|
network: Object,
|
|
channel: Object,
|
|
},
|
|
};
|
|
</script>
|