diff --git a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx index fcc90b63..d68273ee 100644 --- a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx +++ b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx @@ -236,7 +236,12 @@ const DescriptionBox = () => { }, { name: 'Image Status', - value: formatString(taskAssetsInformation?.state), + value: + // if the state is LOCKED_FOR_MAPPING and has a image count it means the images are not fully uploaded + taskAssetsInformation?.state === 'LOCKED_FOR_MAPPING' && + taskAssetsInformation?.image_count > 0 + ? 'Image Uploading Failed' + : formatString(taskAssetsInformation?.state), }, ]} /> @@ -295,43 +300,45 @@ const DescriptionBox = () => { )} - {taskAssetsInformation?.state === 'IMAGE_PROCESSING_FAILED' || - (taskAssetsInformation?.state === 'IMAGE_UPLOADED' && ( -
- Note:{' '} - {uploadedImageType === 'add' - ? 'Uploaded images will be added with the existing images.' - : 'Uploaded images will be replaced with all the existing images and starts processing.'} + {(taskAssetsInformation?.state === 'IMAGE_PROCESSING_FAILED' || + // if the state is LOCKED_FOR_MAPPING and has a image count it means all selected images are not uploaded and the status updating api call is interrupted so need to give user to upload the remaining images + taskAssetsInformation?.state === 'LOCKED_FOR_MAPPING' || + taskAssetsInformation?.state === 'IMAGE_UPLOADED') && ( +
+ Note:{' '} + {uploadedImageType === 'add' + ? 'Uploaded images will be added with the existing images.' + : 'Uploaded images will be replaced with all the existing images and starts processing.'} +
+