460 create restore one and restore many records action (#10647)
Closes https://github.com/twentyhq/core-team-issues/issues/460 https://github.com/user-attachments/assets/5271e56d-bf67-49cc-a8da-e25c12171e2e
This commit is contained in:
@ -30,9 +30,9 @@ export const RecordGroupReorderConfirmationModal = ({
|
||||
isOpen={isRecordGroupReorderConfirmationModalVisible}
|
||||
setIsOpen={setIsRecordGroupReorderConfirmationModalVisible}
|
||||
title="Group sorting"
|
||||
subtitle={`Would you like to remove ${recordGroupSort} group sorting ?`}
|
||||
subtitle={`Would you like to remove ${recordGroupSort} group sorting?`}
|
||||
onConfirmClick={onConfirmClick}
|
||||
deleteButtonText="Remove"
|
||||
confirmButtonText="Remove"
|
||||
/>,
|
||||
document.body,
|
||||
);
|
||||
|
||||
@ -2,19 +2,21 @@ import { useEffect } from 'react';
|
||||
|
||||
import { contextStoreFiltersComponentState } from '@/context-store/states/contextStoreFiltersComponentState';
|
||||
import { contextStoreTargetedRecordsRuleComponentState } from '@/context-store/states/contextStoreTargetedRecordsRuleComponentState';
|
||||
import { currentRecordFiltersComponentState } from '@/object-record/record-filter/states/currentRecordFiltersComponentState';
|
||||
import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
|
||||
import { recordIndexFiltersState } from '@/object-record/record-index/states/recordIndexFiltersState';
|
||||
import { hasUserSelectedAllRowsComponentState } from '@/object-record/record-table/record-table-row/states/hasUserSelectedAllRowsFamilyState';
|
||||
import { selectedRowIdsComponentSelector } from '@/object-record/record-table/states/selectors/selectedRowIdsComponentSelector';
|
||||
import { unselectedRowIdsComponentSelector } from '@/object-record/record-table/states/selectors/unselectedRowIdsComponentSelector';
|
||||
import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2';
|
||||
import { useSetRecoilComponentStateV2 } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentStateV2';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
|
||||
export const RecordIndexFiltersToContextStoreEffect = () => {
|
||||
const { recordIndexId } = useRecordIndexContextOrThrow();
|
||||
|
||||
const recordIndexFilters = useRecoilValue(recordIndexFiltersState);
|
||||
const recordIndexFilters = useRecoilComponentValueV2(
|
||||
currentRecordFiltersComponentState,
|
||||
recordIndexId,
|
||||
);
|
||||
|
||||
const setContextStoreTargetedRecords = useSetRecoilComponentStateV2(
|
||||
contextStoreTargetedRecordsRuleComponentState,
|
||||
|
||||
@ -31,9 +31,9 @@ export const RecordIndexRemoveSortingModal = () => {
|
||||
isOpen={isRemoveSortingModalOpen}
|
||||
setIsOpen={setIsRemoveSortingModalOpen}
|
||||
title={'Remove sorting?'}
|
||||
subtitle={<>This is required to enable manual row reordering.</>}
|
||||
onConfirmClick={() => handleRemoveClick()}
|
||||
deleteButtonText={'Remove Sorting'}
|
||||
subtitle={'This is required to enable manual row reordering.'}
|
||||
onConfirmClick={handleRemoveClick}
|
||||
confirmButtonText={'Remove Sorting'}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@ -300,7 +300,7 @@ export const RecordDetailRelationRecordsListItem = ({
|
||||
</>
|
||||
}
|
||||
onConfirmClick={handleConfirmDelete}
|
||||
deleteButtonText={`Delete ${relationObjectTypeName}`}
|
||||
confirmButtonText={`Delete ${relationObjectTypeName}`}
|
||||
/>,
|
||||
document.body,
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user