Browse Source

feat(gui-v2): set lang / validate

pull/2838/head
Wing-Kam Wong 2 years ago
parent
commit
db4d88af1b
  1. 4
      packages/nc-gui-v2/components/webhook/Editor.vue
  2. 1
      packages/nc-gui-v2/components/webhook/Test.vue

4
packages/nc-gui-v2/components/webhook/Editor.vue

@ -474,8 +474,7 @@ onMounted(() => {
<a-col :span="24"> <a-col :span="24">
<a-tabs v-model:activeKey="urlTabKey" centered> <a-tabs v-model:activeKey="urlTabKey" centered>
<a-tab-pane key="body" tab="Body"> <a-tab-pane key="body" tab="Body">
<!-- TODO: set lang --> <MonacoEditor v-model="hook.notification.payload.body" :validate="false" class="min-h-60 max-h-80" />
<MonacoEditor v-model="hook.notification.payload.body" class="min-h-60 max-h-80" />
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="params" tab="Params" force-render> <a-tab-pane key="params" tab="Params" force-render>
<ApiClientParams v-model="hook.notification.payload.parameters" /> <ApiClientParams v-model="hook.notification.payload.parameters" />
@ -484,7 +483,6 @@ onMounted(() => {
<ApiClientHeaders v-model="hook.notification.payload.headers" /> <ApiClientHeaders v-model="hook.notification.payload.headers" />
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="auth" tab="Auth"> <a-tab-pane key="auth" tab="Auth">
<!-- TODO: set lang -->
<MonacoEditor v-model="hook.notification.payload.auth" class="min-h-60 max-h-80" /> <MonacoEditor v-model="hook.notification.payload.auth" class="min-h-60 max-h-80" />
<span class="text-gray-600 prose-sm"> <span class="text-gray-600 prose-sm">
For more about auth option refer For more about auth option refer

1
packages/nc-gui-v2/components/webhook/Test.vue

@ -61,7 +61,6 @@ onMounted(async () => {
<template> <template>
<a-collapse v-model:activeKey="activeKey" ghost> <a-collapse v-model:activeKey="activeKey" ghost>
<a-collapse-panel key="1" header="Sample Payload"> <a-collapse-panel key="1" header="Sample Payload">
<!-- TODO: set lang -->
<MonacoEditor v-model="sampleData" class="min-h-60 max-h-80" /> <MonacoEditor v-model="sampleData" class="min-h-60 max-h-80" />
</a-collapse-panel> </a-collapse-panel>
</a-collapse> </a-collapse>

Loading…
Cancel
Save