Skip to content

Commit

Permalink
Add metric loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Dec 10, 2024
1 parent 1253285 commit e0eaf13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-console/src/scenes/Editor/Metrics/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MetricDuration, Widget, xAxisFormat, hasData } from "./utils"
import { useGraphOptions } from "./useGraphOptions"
import uPlot from "uplot"
import UplotReact from "uplot-react"
import { Box } from "@questdb/react-components"
import { Box, Loader } from "@questdb/react-components"

const Actions = styled.div`
margin-right: 0;
Expand Down Expand Up @@ -166,6 +166,7 @@ export const Graph = ({
<Box gap="0.5rem" align="center">
<BeforeLabel>{beforeLabel}</BeforeLabel>
<HeaderText>{label}</HeaderText>
{loading && <Loader size="18px" spin />}
</Box>
<Actions>{actions}</Actions>
</Header>
Expand Down

0 comments on commit e0eaf13

Please sign in to comment.