fix: pass camera name to Review page when navigating from Live Camera View

When clicking the History button on a specific camera's Live view,
append `?cameras=<camera_name>` to the review URL so the camera
filter is pre-set to that camera instead of showing "All Cameras".

The Events (Review) page already supports reading the `cameras` URL
parameter via useSearchEffect - no changes needed there.

Fixes: #12776, #16987

https://claude.ai/code/session_01PnMA1HcuKsEXcvVLaXRgF1
This commit is contained in:
Claude 2026-03-21 06:42:43 +00:00
parent c01fd3f38c
commit ee7f0c6717
No known key found for this signature in database

View File

@ -485,7 +485,7 @@ export default function LiveCameraView({
aria-label={t("history.label")}
size="sm"
onClick={() => {
navigate("review", {
navigate(`review?cameras=${camera.name}`, {
state: {
severity: "alert",
recording: {