This commit is contained in:
Dean 2023-08-11 14:19:54 +01:00
parent 9d255c2213
commit 8d4bb0e5fd
1 changed files with 30 additions and 45 deletions

View File

@ -5275,17 +5275,6 @@
"label": "Table", "label": "Table",
"key": "dataSource" "key": "dataSource"
}, },
{
"type": "text",
"label": "Row ID",
"key": "rowId",
"nested": true,
"dependsOn": {
"setting": "actionType",
"value": "Create",
"invert": true
}
},
{ {
"type": "text", "type": "text",
"label": "Title", "label": "Title",
@ -5293,10 +5282,23 @@
"nested": true "nested": true
}, },
{ {
"type": "text", "section": true,
"label": "Empty text", "name": "Row details",
"key": "noRowsMessage", "info": "<a href='https://docs.budibase.com/docs/form-block' target='_blank'>How to pass a row ID using bindings</a>",
"defaultValue": "We couldn't find a row to display", "settings": [
{
"type": "text",
"label": "Row ID",
"key": "rowId",
"nested": true
},
{
"type": "text",
"label": "Empty text",
"key": "noRowsMessage",
"defaultValue": "We couldn't find a row to display"
}
],
"dependsOn": { "dependsOn": {
"setting": "actionType", "setting": "actionType",
"value": "Create", "value": "Create",
@ -5308,46 +5310,26 @@
"name": "Buttons", "name": "Buttons",
"settings": [ "settings": [
{ {
"type": "boolean", "type": "text",
"label": "Show save button", "key": "saveButtonLabel",
"key": "showSaveButton", "label": "Save button",
"defaultValue": true, "nested": true,
"defaultValue": "Save",
"dependsOn": { "dependsOn": {
"setting": "actionType", "setting": "actionType",
"value": "View", "value": "View",
"invert": true "invert": true
} }
}, },
{
"type": "text",
"key": "saveButtonLabel",
"label": "Save button label",
"nested": true,
"defaultValue": "Save",
"dependsOn": {
"setting": "showSaveButton",
"value": true
}
},
{
"type": "boolean",
"label": "Allow delete",
"key": "showDeleteButton",
"defaultValue": false,
"dependsOn": {
"setting": "actionType",
"value": "Update"
}
},
{ {
"type": "text", "type": "text",
"key": "deleteButtonLabel", "key": "deleteButtonLabel",
"label": "Delete button label", "label": "Delete button",
"nested": true, "nested": true,
"defaultValue": "Delete", "defaultValue": "Delete",
"dependsOn": { "dependsOn": {
"setting": "showDeleteButton", "setting": "actionType",
"value": true "value": "Update"
} }
}, },
{ {
@ -5365,7 +5347,11 @@
"type": "boolean", "type": "boolean",
"label": "Hide notifications", "label": "Hide notifications",
"key": "notificationOverride", "key": "notificationOverride",
"defaultValue": false "defaultValue": false,
"dependsOn": {
"setting": "actionType",
"value": "Update"
}
} }
] ]
}, },
@ -5407,7 +5393,6 @@
}, },
{ {
"type": "fieldConfiguration", "type": "fieldConfiguration",
"label": "Fields",
"key": "fields", "key": "fields",
"selectAllFields": true "selectAllFields": true
}, },