瀏覽代碼

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>