thelounge/client/components/Special/ListIgnored.vue

38 lines
732 B
Vue
Raw Normal View History

2018-07-11 09:54:32 +02:00
<template>
<table class="ignore-list">
<thead>
<tr>
<th class="hostmask">Hostmask</th>
<th class="when">Ignored At</th>
</tr>
</thead>
<tbody>
2019-07-17 11:33:59 +02:00
<tr v-for="user in channel.data" :key="user.hostmask">
<td class="hostmask"><ParsedMessage :network="network" :text="user.hostmask" /></td>
2020-01-08 10:11:44 +01:00
<td class="when">{{ localetime(user.when) }}</td>
2018-07-11 09:54:32 +02:00
</tr>
</tbody>
</table>
</template>
<script>
import ParsedMessage from "../ParsedMessage.vue";
2020-01-08 10:11:44 +01:00
import localetime from "../../js/helpers/localetime";
2018-07-11 09:54:32 +02:00
export default {
name: "ListIgnored",
components: {
ParsedMessage,
},
2018-07-11 09:54:32 +02:00
props: {
2018-07-19 19:44:24 +02:00
network: Object,
2018-07-11 09:54:32 +02:00
channel: Object,
},
2020-01-08 10:11:44 +01:00
methods: {
localetime(date) {
return localetime(date);
},
},
2018-07-11 09:54:32 +02:00
};
</script>