Added Support for Assigning Devices to Sites.

This commit is contained in:
2025-09-07 23:13:17 -06:00
parent f7d285a9e8
commit 06ef351214
6 changed files with 766 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ import {
Code as ScriptIcon,
PeopleOutline as CommunityIcon
} from "@mui/icons-material";
import { LocationCity as SitesIcon } from "@mui/icons-material";
function NavigationSidebar({ currentPage, onNavigate }) {
const [expandedNav, setExpandedNav] = useState({
@@ -75,6 +76,8 @@ function NavigationSidebar({ currentPage, onNavigate }) {
}}
>
<Box sx={{ flex: 1, overflowY: "auto" }}>
{/* Top-level Sites */}
<NavItem icon={<SitesIcon fontSize="small" />} label="Sites" pageKey="sites" />
{/* Devices */}
<Accordion
expanded={expandedNav.devices}