1
0
Fork 0
mirror of synced 2024-07-15 03:05:57 +12:00

Merge pull request #12115 from Budibase/feature/form-block-settings-reflow

Form block general settings reflow
This commit is contained in:
Martin McKeaveney 2023-11-01 11:37:35 +00:00 committed by GitHub
commit 7af61ef249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5467,17 +5467,17 @@
}, },
"settings": [ "settings": [
{ {
"type": "select", "type": "table",
"label": "Data",
"key": "dataSource"
},
{
"type": "radio",
"label": "Type", "label": "Type",
"key": "actionType", "key": "actionType",
"options": ["Create", "Update", "View"], "options": ["Create", "Update", "View"],
"defaultValue": "Create" "defaultValue": "Create"
}, },
{
"type": "table",
"label": "Data",
"key": "dataSource"
},
{ {
"type": "text", "type": "text",
"label": "Title", "label": "Title",
@ -5508,13 +5508,37 @@
}, },
{ {
"type": "text", "type": "text",
"label": "Empty text", "label": "No rows found",
"key": "noRowsMessage", "key": "noRowsMessage",
"defaultValue": "We couldn't find a row to display", "defaultValue": "We couldn't find a row to display",
"nested": true "nested": true
} }
] ]
}, },
{
"section": true,
"name": "Fields",
"settings": [
{
"type": "fieldConfiguration",
"key": "fields",
"nested": true,
"resetOn": "dataSource",
"selectAllFields": true
},
{
"type": "boolean",
"label": "Disabled",
"key": "disabled",
"defaultValue": false,
"dependsOn": {
"setting": "actionType",
"value": "View",
"invert": true
}
}
]
},
{ {
"section": true, "section": true,
"name": "Buttons", "name": "Buttons",
@ -5566,30 +5590,6 @@
} }
] ]
}, },
{
"section": true,
"name": "Fields",
"settings": [
{
"type": "fieldConfiguration",
"key": "fields",
"nested": true,
"resetOn": "dataSource",
"selectAllFields": true
},
{
"type": "boolean",
"label": "Disabled",
"key": "disabled",
"defaultValue": false,
"dependsOn": {
"setting": "actionType",
"value": "View",
"invert": true
}
}
]
},
{ {
"tag": "style", "tag": "style",
"type": "select", "type": "select",
@ -5924,4 +5924,4 @@
} }
] ]
} }
} }