Cleanup webhooks

Fixes #393
This commit is contained in:
rijkvanzanten
2020-09-30 16:40:46 -04:00
parent 7b91e83a9d
commit b52e0431b8
3 changed files with 47 additions and 4 deletions

View File

@@ -6,23 +6,30 @@ columns:
name:
type: string
length: 255
nullable: false
method:
type: string
length: 10
default: POST
nullable: false
url:
type: string
length: 255
nullable: false
status:
type: string
length: 10
default: inactive
default: active
nullable: false
data:
type: boolean
default: false
default: true
nullable: false
actions:
type: string
length: 100
nullable: false
collections:
type: string
length: 255
nullable: false

View File

@@ -51,3 +51,19 @@ data:
collection: 210
action_on: 240
action_by: 240
- collection: directus_webhooks
layout: tabular
layout_query:
tabular:
fields:
- status
- name
- method
- url
layout_options:
tabular:
widths:
status: 36
name: 300

View File

@@ -9,11 +9,18 @@ fields:
field: name
interface: text-input
locked: true
options:
iconRight: title
sort: 1
width: full
- collection: directus_webhooks
field: method
interface: dropdown
display: labels
display_options:
defaultBackground: "#ECEFF1"
choices: null
format: false
locked: true
options:
choices:
@@ -32,6 +39,20 @@ fields:
- collection: directus_webhooks
field: status
interface: dropdown
display: labels
display_options:
defaultColor: "#B0BEC5"
defaultBackground: "#ECEFF1"
showAsDot: true
choices:
- text: Active
value: active
foreground: "#607D8B"
background: "#2F80ED"
- text: Inactive
value: inactive
foreground: "#607D8B"
background: "#ECEFF1"
locked: true
options:
choices:
@@ -46,8 +67,7 @@ fields:
interface: toggle
locked: true
options:
choices:
label: Include item data in request
label: Send Event Data
sort: 5
width: half
- collection: directus_webhooks