Skip to content

Commit

Permalink
fix: update setJobIsStarted state in Stop button in JobControl.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianKjerstad authored and KristianKjerstad committed Jul 6, 2023
1 parent f339fc9 commit 02c4518
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion example/src/plugins/job-ui-single/pages/JobControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ export const JobControl = (props: { jobEntityId: string }) => {
<Chip>Status: {status}</Chip>

{jobIsStarted ? (
<Button onClick={() => remove()} variant="contained">
<Button
onClick={() => {
setJobIsStarted(false)
remove()
}}
variant="contained"
>
<Icon data={stop}></Icon>
Stop
</Button>
Expand Down

0 comments on commit 02c4518

Please sign in to comment.