hardlounge/client/components/Special/ListIgnored.vue

34 lines
607 B
Vue
Raw Normal View History

2018-07-11 07:54:32 +00: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 09:33:59 +00:00
<tr v-for="user in channel.data" :key="user.hostmask">
2018-07-11 07:54:32 +00:00
<td class="hostmask">{{ user.hostmask }}</td>
2020-01-08 09:11:44 +00:00
<td class="when">{{ localetime(user.when) }}</td>
2018-07-11 07:54:32 +00:00
</tr>
</tbody>
</table>
</template>
<script>
2020-01-08 09:11:44 +00:00
import localetime from "../../js/helpers/localetime";
2018-07-11 07:54:32 +00:00
export default {
name: "ListIgnored",
props: {
2018-07-19 17:44:24 +00:00
network: Object,
2018-07-11 07:54:32 +00:00
channel: Object,
},
2020-01-08 09:11:44 +00:00
methods: {
localetime(date) {
return localetime(date);
},
},
2018-07-11 07:54:32 +00:00
};
</script>