mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 02:29:19 +03:00
Hide hidden camera alerts (#22226)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
Cameras that have `ui.dashboard = false` config are hidden from the All Cameras "default" group, but their alerts still appear in the top row. This hides the alerts as well. One can still view the hidden cameras and their alerts by making a custom camera group.
This commit is contained in:
parent
1f1d546326
commit
c3c27d036f
@ -92,10 +92,17 @@ export default function LiveDashboardView({
|
|||||||
const eventUpdate = useFrigateReviews();
|
const eventUpdate = useFrigateReviews();
|
||||||
|
|
||||||
const alertCameras = useMemo(() => {
|
const alertCameras = useMemo(() => {
|
||||||
if (!config || cameraGroup == "default") {
|
if (!config) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cameraGroup == "default") {
|
||||||
|
return Object.values(config.cameras)
|
||||||
|
.filter((cam) => cam.ui.dashboard)
|
||||||
|
.map((cam) => cam.name)
|
||||||
|
.join(",");
|
||||||
|
}
|
||||||
|
|
||||||
if (includeBirdseye && cameras.length == 0) {
|
if (includeBirdseye && cameras.length == 0) {
|
||||||
return Object.values(config.cameras)
|
return Object.values(config.cameras)
|
||||||
.filter((cam) => cam.birdseye.enabled)
|
.filter((cam) => cam.birdseye.enabled)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user