Skip to content

Commit

Permalink
disable download button when in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Feb 11, 2024
1 parent a6bf01e commit 4566450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/ProgressButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function ProgressButton<T extends Payload>({
onClick(id);
}}
color={completed ? "green" : theme.primaryColor}
disabled={(completed && !redoable) || disabled}
disabled={((inProgress || completed) && !redoable) || disabled}
leftSection={leftIcon}
>
<div className={classes.label}>{label}</div>
Expand Down

0 comments on commit 4566450

Please sign in to comment.