From 6a09b6c6704de0b4ab456112b6b91842be8cd2a3 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 15 Jan 2026 06:22:04 -0700 Subject: [PATCH] Hid (by default) Site Enrollment Code Rotation Button --- .../web-interface/src/Sites/Site_List.jsx | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Data/Engine/web-interface/src/Sites/Site_List.jsx b/Data/Engine/web-interface/src/Sites/Site_List.jsx index 681e96c2..9d072a50 100644 --- a/Data/Engine/web-interface/src/Sites/Site_List.jsx +++ b/Data/Engine/web-interface/src/Sites/Site_List.jsx @@ -53,6 +53,7 @@ const MAGIC_UI = { const PAGE_TITLE = "Sites"; const PAGE_SUBTITLE = "Manage site enrollment codes, rotate secrets, and open device inventories by site."; const PAGE_ICON = LocationCityIcon; +const SHOW_ROTATE_ENROLLMENT_BUTTON = false; const RAINBOW_BUTTON_SX = { borderRadius: 999, @@ -227,18 +228,20 @@ export default function SiteList({ onOpenDevicesForSite, onPageMetaChange }) { const busy = rotatingId === site.id; return ( - - - handleRotate(site)} - disabled={busy} - sx={{ color: MAGIC_UI.accentA, border: "1px solid rgba(148,163,184,0.35)" }} - > - {busy ? : } - - - + {SHOW_ROTATE_ENROLLMENT_BUTTON ? ( + + + handleRotate(site)} + disabled={busy} + sx={{ color: MAGIC_UI.accentA, border: "1px solid rgba(148,163,184,0.35)" }} + > + {busy ? : } + + + + ) : null} {code}