Bläddra i källkod

Feat: Remove the rotation state of the button that parses the document #7008 (#7009)

### 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)
tags/v0.18.0
balibabu 6 månader sedan
förälder
incheckning
ed352710ec
Inget konto är kopplat till bidragsgivarens mejladress

+ 4
- 0
web/src/hooks/document-hooks.ts Visa fil

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,

+ 2
- 6
web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx Visa fil

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(
record.id,
);
const { handleRunDocumentByIds } = useHandleRunDocumentByIds(record.id);


const isRunning = isParserRunning(text); const isRunning = isParserRunning(text);


cancelText={t('common.cancel')} cancelText={t('common.cancel')}
> >
<div <div
className={classNames(styles.operationIcon, {
[styles.operationIconSpin]: loading,
})}
className={classNames(styles.operationIcon)}
onClick={ onClick={
record.chunk_num === 0 ? handleOperationIconClick(false) : () => {} record.chunk_num === 0 ? handleOperationIconClick(false) : () => {}
} }

Laddar…
Avbryt
Spara