diff --git a/frigate/config.py b/frigate/config.py index b71ba1907..1d90fd643 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -596,6 +596,10 @@ class CameraUiConfig(FrigateBaseModel): dashboard: bool = Field( default=True, title="Show this camera in Frigate dashboard UI." ) + hidecambuttons: bool = Field( + default=False, + title="Hides this camera's Detect/Recordings/Snapshots toggle buttons in Frigate dashboard UI.", + ) class CameraConfig(FrigateBaseModel): diff --git a/web/src/routes/Cameras.jsx b/web/src/routes/Cameras.jsx index 1e2bbf903..24296bae6 100644 --- a/web/src/routes/Cameras.jsx +++ b/web/src/routes/Cameras.jsx @@ -54,7 +54,9 @@ function Camera({ name, config }) { () => { return `${name.replaceAll('_', ' ')}` }, [name] ); - const icons = useMemo( + + const hideIcons = config.ui.hidecambuttons; + const icons = hideIcons ? [] : useMemo( () => [ { name: `Toggle detect ${detectValue === 'ON' ? 'off' : 'on'}`,