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.
45 lines
954 B
45 lines
954 B
3 years ago
|
<template>
|
||
|
<v-dialog v-model="webhookModal" width="min(700px,90%)" overlay-opacity=".9">
|
||
|
<v-card
|
||
|
v-if="webhookModal"
|
||
|
width="100%"
|
||
|
min-height="350px"
|
||
|
class="pa-4"
|
||
|
>
|
||
|
<webhook-editor v-if="editOrAdd" :meta="meta" />
|
||
|
<webhook-list v-else :meta="meta" @edit="editOrAdd=true" @add="editOrAdd=true" />
|
||
|
</v-card>
|
||
|
</v-dialog>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
import WebhookList from '~/components/project/tableTabs/webhook/webhookList'
|
||
|
import WebhookEditor from '~/components/project/tableTabs/webhook/webhookEditor'
|
||
|
export default {
|
||
|
name: 'WebhookModal',
|
||
|
components: { WebhookEditor, WebhookList },
|
||
|
props: {
|
||
|
meta: Object,
|
||
|
value: Boolean
|
||
|
},
|
||
|
data: () => ({
|
||
|
editOrAdd: false,
|
||
|
activePage: 'role'
|
||
|
}),
|
||
|
computed: {
|
||
|
webhookModal: {
|
||
|
get() {
|
||
|
return this.value
|
||
|
},
|
||
|
set(v) {
|
||
|
this.$emit('input', v)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
</style>
|