mirror of
https://github.com/directus/directus.git
synced 2026-02-11 04:45:34 -05:00
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:
@@ -2172,3 +2172,4 @@ operations:
|
||||
parallel: Parallel
|
||||
batch: Batch
|
||||
batch_size: Batch Size
|
||||
cache: Cache
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user