mirror of https://github.com/nocodb/nocodb
Wing-Kam Wong
2 years ago
1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@
|
||||
<script setup lang="ts"> |
||||
import type { HookLogType, HookType } from 'nocodb-sdk' |
||||
import { onBeforeMount, useApi } from '#imports' |
||||
|
||||
const props = defineProps<Props>() |
||||
|
||||
const { api } = useApi() |
||||
|
||||
const hookLogs = ref<HookLogType[]>([]) |
||||
|
||||
interface Props { |
||||
hook: HookType |
||||
} |
||||
|
||||
async function loadHookLogList() { |
||||
hookLogs.value = (await api.dbTableWebhookLogs.list(props.hook.id!)).list! |
||||
} |
||||
|
||||
onBeforeMount(async () => { |
||||
await loadHookLogList() |
||||
}) |
||||
</script> |
||||
|
||||
<template> |
||||
<div v-for="hookLog of hookLogs"> |
||||
{{ hookLog.id }} |
||||
</div> |
||||
</template> |
Loading…
Reference in new issue