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

This commit is contained in:
Ricky
2024-03-26 11:05:29 +08:00
committed by GitHub
parent d70bd4aaa4
commit afd77c4745

View File

@@ -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>