소스 검색

fix: the batch annotaion btn should also be loading when progress status is waiting (#2974)

Ricky 1 년 전
부모
커밋
afd77c4745
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/app/components/app/annotation/batch-add-annotation-modal/index.tsx

+ 1 - 1
web/app/components/app/annotation/batch-add-annotation-modal/index.tsx

@@ -113,7 +113,7 @@ const BatchModal: FC<IBatchModalProps> = ({
           type="primary"
           onClick={handleSend}
           disabled={isAnnotationFull || !currentCSV}
-          loading={importStatus === ProcessStatus.PROCESSING}
+          loading={importStatus === ProcessStatus.PROCESSING || importStatus === ProcessStatus.WAITING}
         >
           {t('appAnnotation.batchModal.run')}
         </Button>