From 407030576bbb8a68004c8d263166b2eaa94e2701 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Thu, 29 Aug 2024 18:26:27 +0200 Subject: [PATCH] Update wording on soft deletes --- .../record-index/hooks/useHandleToggleTrashColumnFilter.ts | 2 +- .../options/components/RecordIndexOptionsDropdownContent.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts index 2530f7c92bc9..9e4a5c0c7e9e 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleTrashColumnFilter.ts @@ -52,7 +52,7 @@ export const useHandleToggleTrashColumnFilter = ({ operand: ViewFilterOperand.IsNotEmpty, displayValue: '', definition: { - label: `Deleted ${objectNameSingular}`, + label: `Deleted ${objectMetadataItem.namePlural}`, iconName: 'IconTrash', fieldMetadataId: trashFieldMetadata.id, type: filterType, diff --git a/packages/twenty-front/src/modules/object-record/record-index/options/components/RecordIndexOptionsDropdownContent.tsx b/packages/twenty-front/src/modules/object-record/record-index/options/components/RecordIndexOptionsDropdownContent.tsx index 4a4277a32ee6..9a5a050bc9b1 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/options/components/RecordIndexOptionsDropdownContent.tsx +++ b/packages/twenty-front/src/modules/object-record/record-index/options/components/RecordIndexOptionsDropdownContent.tsx @@ -166,7 +166,7 @@ export const RecordIndexOptionsDropdownContent = ({ closeDropdown(); }} LeftIcon={IconTrash} - text={`Deleted ${objectNameSingular}`} + text={`Deleted ${objectNamePlural}`} /> )}