Skip to content

Commit

Permalink
fix: Query cancel position
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Oct 11, 2023
1 parent 801388b commit 4a78cb9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/web-console/src/scenes/Editor/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,6 @@ const Menu = () => {

return (
<Wrapper _display={sm ? "none" : "inline"}>
{running.value && (
<ErrorButton onClick={handleClick}>
<Stop size="18px" />
<span>Cancel</span>
</ErrorButton>
)}

<Separator />

{savedQueries.length > 0 && (
Expand All @@ -228,6 +221,13 @@ const Menu = () => {

<Separator />

{running.value && (
<ErrorButton onClick={handleClick}>
<Stop size="18px" />
<span>Cancel</span>
</ErrorButton>
)}

{!running.value && (
<SuccessButton
title="Ctrl+Enter"
Expand Down

0 comments on commit 4a78cb9

Please sign in to comment.