mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-26 00:27:40 +03:00
Only show recordings summary for main camera in history view
This commit is contained in:
parent
2d45ea271e
commit
1838e3881a
@ -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