Skip to content

Commit 0533dad

Browse files
authored
Add progress ring in 'stop evaluation' button (#3383)
1 parent 46a15bf commit 0533dad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extensions/ql-vscode/src/view/model-editor/ModelEditor.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { ToModelEditorMessage } from "../../common/interface-types";
33
import {
44
VSCodeButton,
55
VSCodeCheckbox,
6+
VSCodeProgressRing,
67
VSCodeTag,
78
} from "@vscode/webview-ui-toolkit/react";
89
import { styled } from "styled-components";
@@ -74,6 +75,12 @@ const ButtonsContainer = styled.div`
7475
margin-top: 1rem;
7576
`;
7677

78+
const ProgressRing = styled(VSCodeProgressRing)`
79+
width: 16px;
80+
height: 16px;
81+
margin-right: 5px;
82+
`;
83+
7784
const ModelEvaluation = ({
7885
viewState,
7986
modeledMethods,
@@ -112,6 +119,7 @@ const ModelEvaluation = ({
112119
} else {
113120
return (
114121
<VSCodeButton onClick={onStopEvaluation} appearance="secondary">
122+
<ProgressRing />
115123
Stop evaluation
116124
</VSCodeButton>
117125
);

0 commit comments

Comments
 (0)