mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 05:24:11 +03:00
Only show recordings summary for main camera in history view (#20344)
Some checks failed
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled
Some checks failed
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled
This commit is contained in:
parent
658b0a064c
commit
4bea69591b
@ -103,18 +103,18 @@ export function RecordingView({
|
|||||||
() => allCameras.filter((camera) => allowedCameras.includes(camera)),
|
() => allCameras.filter((camera) => allowedCameras.includes(camera)),
|
||||||
[allCameras, allowedCameras],
|
[allCameras, allowedCameras],
|
||||||
);
|
);
|
||||||
|
const [mainCamera, setMainCamera] = useState(startCamera);
|
||||||
|
|
||||||
const { data: recordingsSummary } = useSWR<RecordingsSummary>([
|
const { data: recordingsSummary } = useSWR<RecordingsSummary>([
|
||||||
"recordings/summary",
|
"recordings/summary",
|
||||||
{
|
{
|
||||||
timezone: timezone,
|
timezone: timezone,
|
||||||
cameras: effectiveCameras.join(",") ?? null,
|
cameras: mainCamera ?? null,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// controller state
|
// controller state
|
||||||
|
|
||||||
const [mainCamera, setMainCamera] = useState(startCamera);
|
|
||||||
const mainControllerRef = useRef<DynamicVideoController | null>(null);
|
const mainControllerRef = useRef<DynamicVideoController | null>(null);
|
||||||
const mainLayoutRef = useRef<HTMLDivElement | null>(null);
|
const mainLayoutRef = useRef<HTMLDivElement | null>(null);
|
||||||
const cameraLayoutRef = useRef<HTMLDivElement | null>(null);
|
const cameraLayoutRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user