mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
544 B
29 lines
544 B
2 years ago
|
<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>
|