1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/database/components/webhook/WebhookList.vue
2023-12-19 12:27:06 +00:00

47 lines
837 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"
@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,
},
webhooks: {
type: Array,
required: true,
},
},
}
</script>