Skip to content

Commit

Permalink
fix(task-description): make rerun button visible only on image proces…
Browse files Browse the repository at this point in the history
…s failure
  • Loading branch information
Sujit committed Oct 22, 2024
1 parent 3cfea30 commit 4f154d8
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,19 @@ const DescriptionBox = () => {
</Button>
</div>
)}
{/* {taskAssetsInformation?.state === 'IMAGE_PROCESSING_FAILED' && ( */}
<div className="">
<Button
variant="ghost"
className="naxatw-bg-red naxatw-text-white disabled:!naxatw-cursor-not-allowed disabled:naxatw-bg-gray-500 disabled:naxatw-text-white"
leftIcon="replay"
iconClassname="naxatw-text-[1.125rem]"
onClick={() => reStartImageryProcess()}
>
Re-run processing
</Button>
</div>
{/* )} */}
{taskAssetsInformation?.state === 'IMAGE_PROCESSING_FAILED' && (
<div className="">
<Button
variant="ghost"
className="naxatw-bg-red naxatw-text-white disabled:!naxatw-cursor-not-allowed disabled:naxatw-bg-gray-500 disabled:naxatw-text-white"
leftIcon="replay"
iconClassname="naxatw-text-[1.125rem]"
onClick={() => reStartImageryProcess()}
>
Re-run processing
</Button>
</div>
)}
{taskAssetsInformation?.state === 'IMAGE_PROCESSING_FAILED' && (
<div className="">
<UploadsBox label="Re-upload Raw Image" />
Expand Down

0 comments on commit 4f154d8

Please sign in to comment.