mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2026-02-04 10:50:31 -07:00
Hid (by default) Site Enrollment Code Rotation Button
This commit is contained in:
@@ -53,6 +53,7 @@ const MAGIC_UI = {
|
|||||||
const PAGE_TITLE = "Sites";
|
const PAGE_TITLE = "Sites";
|
||||||
const PAGE_SUBTITLE = "Manage site enrollment codes, rotate secrets, and open device inventories by site.";
|
const PAGE_SUBTITLE = "Manage site enrollment codes, rotate secrets, and open device inventories by site.";
|
||||||
const PAGE_ICON = LocationCityIcon;
|
const PAGE_ICON = LocationCityIcon;
|
||||||
|
const SHOW_ROTATE_ENROLLMENT_BUTTON = false;
|
||||||
|
|
||||||
const RAINBOW_BUTTON_SX = {
|
const RAINBOW_BUTTON_SX = {
|
||||||
borderRadius: 999,
|
borderRadius: 999,
|
||||||
@@ -227,6 +228,7 @@ export default function SiteList({ onOpenDevicesForSite, onPageMetaChange }) {
|
|||||||
const busy = rotatingId === site.id;
|
const busy = rotatingId === site.id;
|
||||||
return (
|
return (
|
||||||
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
|
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
|
||||||
|
{SHOW_ROTATE_ENROLLMENT_BUTTON ? (
|
||||||
<Tooltip title="Rotate Code">
|
<Tooltip title="Rotate Code">
|
||||||
<span>
|
<span>
|
||||||
<IconButton
|
<IconButton
|
||||||
@@ -239,6 +241,7 @@ export default function SiteList({ onOpenDevicesForSite, onPageMetaChange }) {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
</span>
|
</span>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
) : null}
|
||||||
<Typography variant="body2" sx={{ fontFamily: "monospace", color: MAGIC_UI.textBright }}>
|
<Typography variant="body2" sx={{ fontFamily: "monospace", color: MAGIC_UI.textBright }}>
|
||||||
{code}
|
{code}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user