This commit is contained in:
20
www/nav.js
20
www/nav.js
@@ -26,10 +26,20 @@
|
||||
],
|
||||
},
|
||||
monitoring: {
|
||||
items: [{ section: "monitoring-log", page: "monitoring" }],
|
||||
items: [
|
||||
{ section: "analytics", page: "monitoring" },
|
||||
{ section: "monitoring-log", page: "monitoring" },
|
||||
{ section: "error-logs", page: "monitoring" },
|
||||
{ section: "hardware-health", page: "monitoring" },
|
||||
{ section: "safety-system", page: "monitoring" },
|
||||
{ section: "mission-log", page: "monitoring" },
|
||||
],
|
||||
},
|
||||
system: {
|
||||
items: [{ section: "integrations", page: "integrations" }],
|
||||
items: [
|
||||
{ section: "settings", page: "settings" },
|
||||
{ section: "integrations", page: "integrations" },
|
||||
],
|
||||
},
|
||||
help: {
|
||||
items: [{ section: "help-api", page: "help" }],
|
||||
@@ -49,7 +59,8 @@
|
||||
"path-guides": { module: "setup", section: "path-guides" },
|
||||
users: { module: "setup", section: "users" },
|
||||
integrations: { module: "system", section: "integrations" },
|
||||
monitoring: { module: "monitoring", section: "monitoring-log" },
|
||||
settings: { module: "system", section: "settings" },
|
||||
monitoring: { module: "monitoring", section: "analytics" },
|
||||
help: { module: "help", section: "help-api" },
|
||||
};
|
||||
|
||||
@@ -191,6 +202,7 @@
|
||||
updateRailUI();
|
||||
navigateToPage(page);
|
||||
if (page === "dashboard") window.DashboardApp?.handleNav?.(section);
|
||||
if (page === "monitoring") window.MonitoringApp?.showSection?.(section);
|
||||
}
|
||||
|
||||
function syncDashboardSection(section) {
|
||||
@@ -212,6 +224,7 @@
|
||||
saveState();
|
||||
updateRailUI();
|
||||
if (page === "dashboard") window.DashboardApp?.handleNav?.(activeSection);
|
||||
if (page === "monitoring") window.MonitoringApp?.showSection?.(activeSection);
|
||||
}
|
||||
|
||||
function toggleFlyout() {
|
||||
@@ -310,5 +323,6 @@
|
||||
selectSection,
|
||||
toggleFlyout,
|
||||
refreshFlyout,
|
||||
getActiveSection: () => activeSection,
|
||||
};
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user