From 6e5b8bba673d1dfde1c2c93deceff92e6cdc32b9 Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Tue, 11 Jun 2024 12:46:28 +0530 Subject: [PATCH] chore: hide form settings in button widget (#34131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #33935 /ok-to-test tags="@tag.Anvil" ## Summary by CodeRabbit - **Refactor** - Removed form settings section from the property pane configuration to streamline settings management. > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: f75662e62726b06e8627ba4f5c5f43da8ee89419 > Cypress dashboard url: Click here! --------- Co-authored-by: Pawan Kumar --- .../propertyPaneConfig/contentConfig.ts | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/app/client/src/widgets/wds/WDSButtonWidget/config/propertyPaneConfig/contentConfig.ts b/app/client/src/widgets/wds/WDSButtonWidget/config/propertyPaneConfig/contentConfig.ts index 6a4119f597..0fec52959b 100644 --- a/app/client/src/widgets/wds/WDSButtonWidget/config/propertyPaneConfig/contentConfig.ts +++ b/app/client/src/widgets/wds/WDSButtonWidget/config/propertyPaneConfig/contentConfig.ts @@ -118,32 +118,4 @@ export const propertyPaneContentConfig = [ }, ], }, - // TODO: refactor widgetParentProps implementation when we address #10659 - { - sectionName: "Form settings", - children: [ - { - helpText: - "Disabled if the form is invalid, if this widget exists directly within a Form widget.", - propertyName: "disabledWhenInvalid", - label: "Disabled invalid forms", - controlType: "SWITCH", - isJSConvertible: true, - isBindProperty: true, - isTriggerProperty: false, - validation: { type: ValidationTypes.BOOLEAN }, - }, - { - helpText: - "Resets the fields of the form, on click, if this widget exists directly within a Form widget.", - propertyName: "resetFormOnClick", - label: "Reset form on success", - controlType: "SWITCH", - isJSConvertible: true, - isBindProperty: true, - isTriggerProperty: false, - validation: { type: ValidationTypes.BOOLEAN }, - }, - ], - }, ];