diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index 23add70d6..b09f17e06 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -434,9 +434,11 @@ cameras: # Optional: Configuration for how camera is handled in the GUI. ui: - # Optional: Adjust sort order of cameras in the GUI. Larger numbers come later (default: shown below) + # Optional: Adjust sort order of cameras in the UI. Larger numbers come later (default: shown below) # By default the cameras are sorted alphabetically. order: 0 - # Optional: Whether or not to show the camera in the GUI (default: shown below) - show: True + # Optional: Whether or not to show the camera in the Frigate UI (default: shown below) + dashboard: True + # Optional: Whether or not to show the camera in the Frigate Birdseye View (default: shown below) + birdseye: True ``` diff --git a/frigate/config.py b/frigate/config.py index 705ce47fd..66508e151 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -502,7 +502,7 @@ class CameraLiveConfig(FrigateBaseModel): class CameraUiConfig(FrigateBaseModel): birdseye: bool = Field(default=True, title="Show this camera in Frigate Birdseye View.") order: int = Field(default=0, title="Order of camera in UI.") - show: bool = Field(default=True, title="Show this camera in Frigate UI.") + dashboard: bool = Field(default=True, title="Show this camera in Frigate dashboard UI.") class CameraConfig(FrigateBaseModel): diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx index fa8c78c46..7e7a9f3f0 100644 --- a/web/src/Sidebar.jsx +++ b/web/src/Sidebar.jsx @@ -52,7 +52,7 @@ function SortedCameras({ unsortedCameras }) { const sortedCameras = useMemo(() => Object.entries(unsortedCameras) - .filter(([_, conf]) => conf.ui.show) + .filter(([_, conf]) => conf.ui.dashboard) .sort(([_, aConf], [__, bConf]) => aConf.ui.order === bConf.ui.order ? 0 : (aConf.ui.order > bConf.ui.order ? 1 : -1)), [unsortedCameras]); @@ -71,7 +71,7 @@ function SortedRecordingCameras({ unsortedCameras }) { const sortedCameras = useMemo(() => Object.entries(unsortedCameras) - .filter(([_, conf]) => conf.ui.show) + .filter(([_, conf]) => conf.ui.dashboard) .sort(([_, aConf], [__, bConf]) => aConf.ui.order === bConf.ui.order ? 0 : (aConf.ui.order > bConf.ui.order ? 1 : -1)), [unsortedCameras]); diff --git a/web/src/routes/Cameras.jsx b/web/src/routes/Cameras.jsx index 065e9f567..d3eaf82d5 100644 --- a/web/src/routes/Cameras.jsx +++ b/web/src/routes/Cameras.jsx @@ -25,7 +25,7 @@ function SortedCameras({ unsortedCameras }) { const sortedCameras = useMemo(() => Object.entries(unsortedCameras) - .filter(([_, conf]) => conf.ui.show) + .filter(([_, conf]) => conf.ui.dashboard) .sort(([_, aConf], [__, bConf]) => aConf.ui.order === bConf.ui.order ? 0 : (aConf.ui.order > bConf.ui.order ? 1 : -1)), [unsortedCameras]);