Skip to content

The open alternative to Salesforce, designed for AI.

Update delete record message (#11132)

Raphaël Bosifd23a6e5ff8a
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx
index 42eea54f564..f16d3c98c29 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/multiple-records/hooks/useDeleteMultipleRecordsAction.tsx
@@ -18,7 +18,6 @@ import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModa
import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2';
import { t } from '@lingui/core/macro';
import { useCallback, useState } from 'react';
-import { getOsControlSymbol } from 'twenty-ui';
import { isDefined } from 'twenty-shared/utils';
export const useDeleteMultipleRecordsAction: ActionHookWithObjectMetadataItem =
@@ -110,14 +109,12 @@ export const useDeleteMultipleRecordsAction: ActionHookWithObjectMetadataItem =
setIsDeleteRecordsModalOpen(true);
};
- const osControlSymbol = getOsControlSymbol();
-
const confirmationModal = (
<ConfirmationModal
isOpen={isDeleteRecordsModalOpen}
setIsOpen={setIsDeleteRecordsModalOpen}
title={'Delete Records'}
- subtitle={t`Are you sure you want to delete these records? They can be recovered from the Command menu (${osControlSymbol} + K).`}
+ subtitle={t`Are you sure you want to delete these records? They can be recovered from the Command menu.`}
onConfirmClick={handleDeleteClick}
confirmButtonText={'Delete Records'}
/>
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx
index 5a8b4cbd41f..8caa9f4fa41 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/hooks/useDeleteSingleRecordAction.tsx
@@ -11,7 +11,6 @@ import { t } from '@lingui/core/macro';
import { isNull } from '@sniptt/guards';
import { useCallback, useState } from 'react';
import { useRecoilValue } from 'recoil';
-import { getOsControlSymbol } from 'twenty-ui';
import { isDefined } from 'twenty-shared/utils';
export const useDeleteSingleRecordAction: ActionHookWithObjectMetadataItem = ({
@@ -72,8 +71,6 @@ export const useDeleteSingleRecordAction: ActionHookWithObjectMetadataItem = ({
setIsDeleteRecordsModalOpen(true);
};
- const osControlSymbol = getOsControlSymbol();
-
return {
shouldBeRegistered,
onClick,
@@ -82,7 +79,7 @@ export const useDeleteSingleRecordAction: ActionHookWithObjectMetadataItem = ({
isOpen={isDeleteRecordsModalOpen}
setIsOpen={setIsDeleteRecordsModalOpen}
title={'Delete Record'}
- subtitle={t`Are you sure you want to delete this record? It can be recovered from the Command menu (${osControlSymbol} + K).`}
+ subtitle={t`Are you sure you want to delete this record? It can be recovered from the Command menu.`}
onConfirmClick={() => {
handleDeleteClick();
}}