diff --git a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx index 6cc60453dd..bf43e41dee 100644 --- a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx +++ b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx @@ -1,5 +1,5 @@ import type { FC } from 'react' -import { RiArchive2Line, RiCheckboxCircleLine, RiCloseCircleLine, RiDeleteBinLine, RiDraftLine } from '@remixicon/react' +import { RiArchive2Line, RiCheckboxCircleLine, RiCloseCircleLine, RiDeleteBinLine, RiDraftLine, RiRefreshLine } from '@remixicon/react' import { useBoolean } from 'ahooks' import * as React from 'react' import { useTranslation } from 'react-i18next' @@ -17,6 +17,7 @@ type IBatchActionProps = { onBatchDelete: () => Promise onArchive?: () => void onEditMetadata?: () => void + onBatchReIndex?: () => void onCancel: () => void } @@ -28,6 +29,7 @@ const BatchAction: FC = ({ onArchive, onBatchDelete, onEditMetadata, + onBatchReIndex, onCancel, }) => { const { t } = useTranslation() @@ -91,6 +93,16 @@ const BatchAction: FC = ({ {t(`${i18nPrefix}.archive`)} )} + {onBatchReIndex && ( + + )}