Add spinner to execution controls

This commit is contained in:
Nilay Majorwar 2022-02-22 15:37:07 +05:30
parent 032f9a6792
commit bf2562ab2f

View File

@ -3,6 +3,7 @@ import {
ButtonGroup,
Icon,
NumericInput,
Spinner,
Tag,
} from "@blueprintjs/core";
@ -121,6 +122,9 @@ type Props = {
export const ExecutionControls = (props: Props) => {
return (
<div style={styles.container}>
<div style={{ width: 20, marginRight: 15 }}>
{props.state === "running" && <Spinner size={20} />}
</div>
{props.state === "off" ? (
<RunButton onClick={props.onRun} />
) : (