mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Show Consoles link if configured
Some checks are pending
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Build Prometheus for common architectures (0) (push) Waiting to run
CI / Build Prometheus for common architectures (1) (push) Waiting to run
CI / Build Prometheus for common architectures (2) (push) Waiting to run
CI / Build Prometheus for all architectures (0) (push) Waiting to run
CI / Build Prometheus for all architectures (1) (push) Waiting to run
CI / Build Prometheus for all architectures (10) (push) Waiting to run
CI / Build Prometheus for all architectures (11) (push) Waiting to run
CI / Build Prometheus for all architectures (2) (push) Waiting to run
CI / Build Prometheus for all architectures (3) (push) Waiting to run
CI / Build Prometheus for all architectures (4) (push) Waiting to run
CI / Build Prometheus for all architectures (5) (push) Waiting to run
CI / Build Prometheus for all architectures (6) (push) Waiting to run
CI / Build Prometheus for all architectures (7) (push) Waiting to run
CI / Build Prometheus for all architectures (8) (push) Waiting to run
CI / Build Prometheus for all architectures (9) (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Some checks are pending
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Build Prometheus for common architectures (0) (push) Waiting to run
CI / Build Prometheus for common architectures (1) (push) Waiting to run
CI / Build Prometheus for common architectures (2) (push) Waiting to run
CI / Build Prometheus for all architectures (0) (push) Waiting to run
CI / Build Prometheus for all architectures (1) (push) Waiting to run
CI / Build Prometheus for all architectures (10) (push) Waiting to run
CI / Build Prometheus for all architectures (11) (push) Waiting to run
CI / Build Prometheus for all architectures (2) (push) Waiting to run
CI / Build Prometheus for all architectures (3) (push) Waiting to run
CI / Build Prometheus for all architectures (4) (push) Waiting to run
CI / Build Prometheus for all architectures (5) (push) Waiting to run
CI / Build Prometheus for all architectures (6) (push) Waiting to run
CI / Build Prometheus for all architectures (7) (push) Waiting to run
CI / Build Prometheus for all architectures (8) (push) Waiting to run
CI / Build Prometheus for all architectures (9) (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
53affc64db
commit
1f8a6b4d6e
|
@ -26,6 +26,7 @@ import {
|
||||||
IconChevronRight,
|
IconChevronRight,
|
||||||
IconCloudDataConnection,
|
IconCloudDataConnection,
|
||||||
IconDatabase,
|
IconDatabase,
|
||||||
|
IconDeviceDesktopAnalytics,
|
||||||
IconFlag,
|
IconFlag,
|
||||||
IconHeartRateMonitor,
|
IconHeartRateMonitor,
|
||||||
IconInfoCircle,
|
IconInfoCircle,
|
||||||
|
@ -197,10 +198,22 @@ function App() {
|
||||||
dispatch(updateSettings({ pathPrefix }));
|
dispatch(updateSettings({ pathPrefix }));
|
||||||
}, [pathPrefix]);
|
}, [pathPrefix]);
|
||||||
|
|
||||||
const { agentMode } = useSettings();
|
const { agentMode, consolesLink } = useSettings();
|
||||||
|
|
||||||
const navLinks = (
|
const navLinks = (
|
||||||
<>
|
<>
|
||||||
|
{consolesLink && (
|
||||||
|
<Button
|
||||||
|
component="a"
|
||||||
|
href={consolesLink}
|
||||||
|
className={classes.link}
|
||||||
|
leftSection={<IconDeviceDesktopAnalytics style={navIconStyle} />}
|
||||||
|
px={navLinkXPadding}
|
||||||
|
>
|
||||||
|
Consoles
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
|
||||||
{mainNavPages
|
{mainNavPages
|
||||||
.filter((p) => !agentMode || p.inAgentMode)
|
.filter((p) => !agentMode || p.inAgentMode)
|
||||||
.map((p) => (
|
.map((p) => (
|
||||||
|
|
Loading…
Reference in a new issue