From 881fd04dbc3029727403b18a21c1fbeea4eb4db4 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 24 Apr 2023 19:23:50 +0800 Subject: [PATCH] feat(nc-gui): show body for v2 but not in EE --- packages/nc-gui/components/webhook/Editor.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/webhook/Editor.vue b/packages/nc-gui/components/webhook/Editor.vue index fe652c5dda..ebabf7809c 100644 --- a/packages/nc-gui/components/webhook/Editor.vue +++ b/packages/nc-gui/components/webhook/Editor.vue @@ -66,7 +66,9 @@ const hook = reactive< version: 'v2', }) -const urlTabKey = ref('params') +const isBodyShown = ref(hook.version === 'v1' || (hook.version === 'v2' && appInfo.ee)) + +const urlTabKey = ref(isBodyShown.value ? 'body' : 'params') const apps: Record = ref() @@ -596,7 +598,7 @@ onMounted(async () => { - + { -
+
Use context variable data to refer the record under consideration