Преглед на файлове

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>