Browse Source

feat(nc-gui): include data usage in hook for non v2 url hooks

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
94f0a52bc4
  1. 18
      packages/nc-gui/components/webhook/Editor.vue

18
packages/nc-gui/components/webhook/Editor.vue

@ -697,6 +697,24 @@ onMounted(async () => {
<a-row>
<a-col :span="24">
<div v-if="!(hook.version === 'v2' && hook.type === 'URL')" class="text-gray-600">
<em>Use context variable <strong>data</strong> to refer the record under consideration</em>
<a-tooltip bottom>
<template #title>
<span> <strong>data</strong> : Row data <br /> </span>
</template>
<component :is="iconMap.info" class="ml-2" />
</a-tooltip>
<div class="my-3">
<a href="https://docs.nocodb.com/developer-resources/webhooks/" target="_blank">
<!-- Document Reference -->
{{ $t('labels.docReference') }}
</a>
</div>
</div>
<LazyWebhookTest
ref="webhookTestRef"
:hook="{

Loading…
Cancel
Save