Disable buttons when processing

This commit is contained in:
James Ketr 2025-04-18 17:19:15 -07:00
parent 331bd03cfc
commit 8fdbc0deb5

View File

@ -429,7 +429,7 @@ const ResumeActionCard: React.FC<ResumeActionCardProps> = ({ resume, processing,
size="large"
edge="start"
color="inherit"
disabled={processing === "resume"}
disabled={processing !== undefined}
onClick={() => { triggerFactCheck(undefined); }}
>
<Tooltip title="Reset Resume">
@ -441,7 +441,7 @@ const ResumeActionCard: React.FC<ResumeActionCardProps> = ({ resume, processing,
<Button
sx={{ m: 1, gap: 1, flexGrow: 1 }}
variant="contained"
disabled={processing === "facts"}
disabled={processing !== undefined}
onClick={() => { resume && triggerFactCheck(resume.content); }}
>
Fact Check<SendIcon />