mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-19 20:50:00 +08:00
### What problem does this PR solve? Feat: Remove the rotation state of the button that parses the document #7008 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
0a0c1edce3
commit
ed352710ec
@ -325,6 +325,10 @@ export const useRunNextDocument = () => {
|
||||
run: number;
|
||||
shouldDelete: boolean;
|
||||
}) => {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ['fetchDocumentList'],
|
||||
});
|
||||
|
||||
const ret = await kbService.document_run({
|
||||
doc_ids: documentIds,
|
||||
run,
|
||||
|
@ -90,9 +90,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
|
||||
const text = record.run;
|
||||
const runningStatus = RunningStatusMap[text];
|
||||
const { t } = useTranslation();
|
||||
const { handleRunDocumentByIds, loading } = useHandleRunDocumentByIds(
|
||||
record.id,
|
||||
);
|
||||
const { handleRunDocumentByIds } = useHandleRunDocumentByIds(record.id);
|
||||
|
||||
const isRunning = isParserRunning(text);
|
||||
|
||||
@ -130,9 +128,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
|
||||
cancelText={t('common.cancel')}
|
||||
>
|
||||
<div
|
||||
className={classNames(styles.operationIcon, {
|
||||
[styles.operationIconSpin]: loading,
|
||||
})}
|
||||
className={classNames(styles.operationIcon)}
|
||||
onClick={
|
||||
record.chunk_num === 0 ? handleOperationIconClick(false) : () => {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user