From 8d4bb0e5fd7264c733469554561697aca3a12ee8 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 11 Aug 2023 14:19:54 +0100 Subject: [PATCH] A --- packages/client/manifest.json | 75 ++++++++++++++--------------------- 1 file changed, 30 insertions(+), 45 deletions(-) diff --git a/packages/client/manifest.json b/packages/client/manifest.json index 9cd23d6eb4..5de05d1e4a 100644 --- a/packages/client/manifest.json +++ b/packages/client/manifest.json @@ -5275,17 +5275,6 @@ "label": "Table", "key": "dataSource" }, - { - "type": "text", - "label": "Row ID", - "key": "rowId", - "nested": true, - "dependsOn": { - "setting": "actionType", - "value": "Create", - "invert": true - } - }, { "type": "text", "label": "Title", @@ -5293,10 +5282,23 @@ "nested": true }, { - "type": "text", - "label": "Empty text", - "key": "noRowsMessage", - "defaultValue": "We couldn't find a row to display", + "section": true, + "name": "Row details", + "info": "How to pass a row ID using bindings", + "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": { "setting": "actionType", "value": "Create", @@ -5308,46 +5310,26 @@ "name": "Buttons", "settings": [ { - "type": "boolean", - "label": "Show save button", - "key": "showSaveButton", - "defaultValue": true, + "type": "text", + "key": "saveButtonLabel", + "label": "Save button", + "nested": true, + "defaultValue": "Save", "dependsOn": { "setting": "actionType", "value": "View", "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", "key": "deleteButtonLabel", - "label": "Delete button label", + "label": "Delete button", "nested": true, "defaultValue": "Delete", "dependsOn": { - "setting": "showDeleteButton", - "value": true + "setting": "actionType", + "value": "Update" } }, { @@ -5365,7 +5347,11 @@ "type": "boolean", "label": "Hide notifications", "key": "notificationOverride", - "defaultValue": false + "defaultValue": false, + "dependsOn": { + "setting": "actionType", + "value": "Update" + } } ] }, @@ -5407,7 +5393,6 @@ }, { "type": "fieldConfiguration", - "label": "Fields", "key": "fields", "selectAllFields": true },