Disable buttons when processing
This commit is contained in:
parent
331bd03cfc
commit
8fdbc0deb5
@ -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 />
|
||||
|
Loading…
x
Reference in New Issue
Block a user