From 2aa6bcdb70e4f719bda27cd461c8cce1b3568c6a Mon Sep 17 00:00:00 2001 From: brendanlaschke Date: Mon, 18 Mar 2024 16:11:02 +0100 Subject: [PATCH] Action bar add delete count (#4470) Co-authored-by: Lucas Bordeau --- .../record-action-bar/hooks/useRecordActionBar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-action-bar/hooks/useRecordActionBar.tsx b/packages/twenty-front/src/modules/object-record/record-action-bar/hooks/useRecordActionBar.tsx index 98ae1ee541..7ee44441af 100644 --- a/packages/twenty-front/src/modules/object-record/record-action-bar/hooks/useRecordActionBar.tsx +++ b/packages/twenty-front/src/modules/object-record/record-action-bar/hooks/useRecordActionBar.tsx @@ -106,7 +106,7 @@ export const useRecordActionBar = ({ const baseActions: ContextMenuEntry[] = useMemo( () => [ { - label: 'Delete', + label: `Delete (${selectedRecordIds.length})`, Icon: IconTrash, accent: 'danger', onClick: () => handleDeleteClick(), @@ -118,7 +118,7 @@ export const useRecordActionBar = ({ onClick: () => download(), }, ], - [handleDeleteClick, download, progress], + [handleDeleteClick, download, progress, selectedRecordIds], ); const dataExecuteQuickActionOnmentEnabled = useIsFeatureEnabled(