2018-07-06 18:15:15 +00:00
|
|
|
<template>
|
2018-07-12 19:24:35 +00:00
|
|
|
<ChannelWrapper
|
|
|
|
:network="network"
|
|
|
|
:channel="channel"
|
2019-02-25 05:38:13 +00:00
|
|
|
:active-channel="activeChannel"
|
|
|
|
>
|
2018-10-05 09:14:30 +00:00
|
|
|
<span class="name">{{ channel.name }}</span>
|
2018-07-12 19:24:35 +00:00
|
|
|
<span
|
|
|
|
v-if="channel.unread"
|
|
|
|
:class="{ highlight: channel.highlight }"
|
2019-02-25 05:38:13 +00:00
|
|
|
class="badge"
|
|
|
|
>{{ channel.unread | roundBadgeNumber }}</span>
|
2018-07-12 19:24:35 +00:00
|
|
|
<template v-if="channel.type === 'channel'">
|
2019-02-25 05:21:40 +00:00
|
|
|
<span
|
2019-02-26 06:26:45 +00:00
|
|
|
v-if="channel.state === 0"
|
2019-02-25 05:21:40 +00:00
|
|
|
class="parted-channel-tooltip tooltipped tooltipped-w"
|
|
|
|
aria-label="Not currently joined">
|
|
|
|
<span class="parted-channel-icon" />
|
|
|
|
</span>
|
2018-07-08 08:54:35 +00:00
|
|
|
<span
|
2018-07-12 19:24:35 +00:00
|
|
|
class="close-tooltip tooltipped tooltipped-w"
|
2019-02-25 05:38:13 +00:00
|
|
|
aria-label="Leave"
|
|
|
|
>
|
2018-07-06 18:15:15 +00:00
|
|
|
<button
|
2018-07-12 19:24:35 +00:00
|
|
|
class="close"
|
2019-02-25 05:38:13 +00:00
|
|
|
aria-label="Leave"
|
|
|
|
/>
|
2018-07-06 18:15:15 +00:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
<span
|
2018-07-12 19:24:35 +00:00
|
|
|
class="close-tooltip tooltipped tooltipped-w"
|
2019-02-25 05:38:13 +00:00
|
|
|
aria-label="Close"
|
|
|
|
>
|
2018-07-12 19:24:35 +00:00
|
|
|
<button
|
|
|
|
class="close"
|
2019-02-25 05:38:13 +00:00
|
|
|
aria-label="Close"
|
|
|
|
/>
|
2018-07-12 19:24:35 +00:00
|
|
|
</span>
|
2018-07-06 18:15:15 +00:00
|
|
|
</template>
|
2018-07-12 19:24:35 +00:00
|
|
|
</ChannelWrapper>
|
2018-07-06 18:15:15 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-07-12 19:24:35 +00:00
|
|
|
import ChannelWrapper from "./ChannelWrapper.vue";
|
2018-07-08 20:08:08 +00:00
|
|
|
|
2018-07-06 18:15:15 +00:00
|
|
|
export default {
|
|
|
|
name: "Channel",
|
2018-07-12 19:24:35 +00:00
|
|
|
components: {
|
|
|
|
ChannelWrapper,
|
|
|
|
},
|
2018-07-06 18:15:15 +00:00
|
|
|
props: {
|
|
|
|
activeChannel: Object,
|
|
|
|
network: Object,
|
|
|
|
channel: Object,
|
2018-07-08 20:08:08 +00:00
|
|
|
},
|
2018-07-06 18:15:15 +00:00
|
|
|
};
|
|
|
|
</script>
|