From 095524c3454e347b1cc8aa68dd0fb2b2e079f059 Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Fri, 17 May 2024 16:58:31 +0530 Subject: [PATCH] chore: allow deleting toolbar + add icon for toolbar creation (#33544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #33395 /ok-to-test tags="@tag.Anvil" > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 70759b80893d1c014ca305020f1a9e429267de2c > Cypress dashboard url: Click here! Co-authored-by: Pawan Kumar --- .../propertyControls/DraggableListCard.tsx | 2 +- .../ToolbarButtonListControl.tsx | 40 +++++++++++++++++++ .../src/components/propertyControls/index.ts | 2 + .../propertyPaneConfig/contentConfig.ts | 2 +- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 app/client/src/components/propertyControls/ToolbarButtonListControl.tsx diff --git a/app/client/src/components/propertyControls/DraggableListCard.tsx b/app/client/src/components/propertyControls/DraggableListCard.tsx index cbc7bc00eb..ae25fd30b7 100644 --- a/app/client/src/components/propertyControls/DraggableListCard.tsx +++ b/app/client/src/components/propertyControls/DraggableListCard.tsx @@ -204,7 +204,7 @@ export function DraggableListCard(props: RenderComponentProps) { startIcon="settings-2-line" /> )} - {showDelete && !isSeparator && ( + {showDelete && (