Action bar add delete count (#4470)

Co-authored-by: Lucas Bordeau <[email protected]>
This commit is contained in:
brendanlaschke
2024-03-18 16:11:02 +01:00
committed by GitHub
co-authored by Lucas Bordeau
parent 411aac5efc
commit 2aa6bcdb70
@@ -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(