Skip to content

Commit

Permalink
Modify runbar to stop execution on reset (#247)
Browse files Browse the repository at this point in the history
Stop execution on reset
  • Loading branch information
netalondon authored Mar 25, 2024
1 parent 7fc8d69 commit f2622ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/src/runbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ export const Runbar = (props: {
</button>
<button
className="flex-0"
onClick={() => runner.actions.reset()}
onClick={() => {
if (runner.state.running) {
runner.actions.stop();
}
runner.actions.reset();
}}
data-tooltip={props.overrideTooltips?.reset ?? `Reset`}
data-placement="bottom"
>
Expand Down

0 comments on commit f2622ca

Please sign in to comment.