Files
baserow/web-frontend/modules/database/components/webhook/WebhookList.vue
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00

53 lines
952 B
Vue

<template>
<div class="webhook__list">
<p v-if="webhooks.length === 0" class="margin-top-2">
{{ $t('webhookList.noWebhooksMessage') }}
</p>
<Webhook
v-for="webhook in webhooks"
:key="webhook.id"
:webhook="webhook"
:database="database"
:table="table"
:fields="fields"
:views="views"
@updated="$emit('updated', $event)"
@deleted="$emit('deleted', $event)"
/>
</div>
</template>
<script>
import Webhook from './Webhook.vue'
export default {
name: 'WebhookList',
components: {
Webhook,
},
props: {
database: {
type: Object,
required: true,
},
table: {
type: Object,
required: true,
},
fields: {
type: Array,
required: true,
},
views: {
type: Array,
required: true,
},
webhooks: {
type: Array,
required: true,
},
},
emits: ['deleted', 'updated'],
}
</script>