mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-08 18:09:58 +00:00
22 lines
592 B
Vue
22 lines
592 B
Vue
<script setup lang="ts">
|
|
const { client } = useMasto()
|
|
const paginator = client.value.v1.domainBlocks.list()
|
|
|
|
async function unblock(domain: string) {
|
|
await client.value.v1.domainBlocks.remove({ domain })
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<CommonPaginator :paginator="paginator">
|
|
<template #default="{ item }">
|
|
<CommonDropdownItem class="!cursor-auto">
|
|
{{ item }}
|
|
<template #actions>
|
|
<div i-ri:lock-unlock-line text-primary cursor-pointer @click="unblock(item)" />
|
|
</template>
|
|
</CommonDropdownItem>
|
|
</template>
|
|
</CommonPaginator>
|
|
</template>
|