Add Cache option for Flows webhook trigger (#18277)

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
ian
2023-05-02 23:17:07 +08:00
committed by GitHub
parent 06ff0c2ef9
commit 69061c1284
8 changed files with 272 additions and 14 deletions

View File

@@ -2172,3 +2172,4 @@ operations:
parallel: Parallel
batch: Batch
batch_size: Batch Size
cache: Cache

View File

@@ -197,7 +197,7 @@ export function getTriggers() {
copyable: true,
},
],
options: ({ async }) => [
options: ({ async, method }) => [
{
field: 'method',
name: t('triggers.webhook.method'),
@@ -255,6 +255,19 @@ export function getTriggers() {
hidden: async,
},
},
{
field: 'cacheEnabled',
name: '$t:operations.trigger.cache',
type: 'boolean',
meta: {
width: 'half',
hidden: method && method !== 'GET',
interface: 'toggle',
},
schema: {
default_value: true,
},
},
],
},
{