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;
|
run: number;
|
||||||
shouldDelete: boolean;
|
shouldDelete: boolean;
|
||||||
}) => {
|
}) => {
|
||||||
|
queryClient.invalidateQueries({
|
||||||
|
queryKey: ['fetchDocumentList'],
|
||||||
|
});
|
||||||
|
|
||||||
const ret = await kbService.document_run({
|
const ret = await kbService.document_run({
|
||||||
doc_ids: documentIds,
|
doc_ids: documentIds,
|
||||||
run,
|
run,
|
||||||
|
@ -90,9 +90,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
|
|||||||
const text = record.run;
|
const text = record.run;
|
||||||
const runningStatus = RunningStatusMap[text];
|
const runningStatus = RunningStatusMap[text];
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { handleRunDocumentByIds, loading } = useHandleRunDocumentByIds(
|
const { handleRunDocumentByIds } = useHandleRunDocumentByIds(record.id);
|
||||||
record.id,
|
|
||||||
);
|
|
||||||
|
|
||||||
const isRunning = isParserRunning(text);
|
const isRunning = isParserRunning(text);
|
||||||
|
|
||||||
@ -130,9 +128,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
|
|||||||
cancelText={t('common.cancel')}
|
cancelText={t('common.cancel')}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={classNames(styles.operationIcon, {
|
className={classNames(styles.operationIcon)}
|
||||||
[styles.operationIconSpin]: loading,
|
|
||||||
})}
|
|
||||||
onClick={
|
onClick={
|
||||||
record.chunk_num === 0 ? handleOperationIconClick(false) : () => {}
|
record.chunk_num === 0 ? handleOperationIconClick(false) : () => {}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user