mirror of
https://github.com/prometheus/prometheus
synced 2025-02-19 05:57:01 +00:00
Always display HTTP params under the endpoint link
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
b37fe21f63
commit
e07dd8cd05
@ -1,4 +1,4 @@
|
|||||||
import { Anchor, Badge, Group } from "@mantine/core";
|
import { Anchor, Badge, Group, Stack } from "@mantine/core";
|
||||||
import { FC } from "react";
|
import { FC } from "react";
|
||||||
|
|
||||||
export interface EndpointLinkProps {
|
export interface EndpointLinkProps {
|
||||||
@ -30,7 +30,7 @@ const EndpointLink: FC<EndpointLinkProps> = ({ endpoint, globalUrl }) => {
|
|||||||
? endpoint.replace(search, "")
|
? endpoint.replace(search, "")
|
||||||
: `${protocol}//${host}${pathname}`;
|
: `${protocol}//${host}${pathname}`;
|
||||||
return (
|
return (
|
||||||
<>
|
<Stack gap={0}>
|
||||||
<Anchor size="sm" href={globalUrl}>
|
<Anchor size="sm" href={globalUrl}>
|
||||||
{displayLink}
|
{displayLink}
|
||||||
</Anchor>
|
</Anchor>
|
||||||
@ -51,7 +51,7 @@ const EndpointLink: FC<EndpointLinkProps> = ({ endpoint, globalUrl }) => {
|
|||||||
})}
|
})}
|
||||||
</Group>
|
</Group>
|
||||||
)}
|
)}
|
||||||
</>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user