|
|
@ -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) => (
|
|
|
|