mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 13:15:25 +03:00
Fix opening recordings view from gif
This commit is contained in:
parent
fda1e0eeb6
commit
05846fbf95
@ -7,6 +7,7 @@ import { FrigateConfig } from "@/types/frigateConfig";
|
|||||||
import { ReviewSegment } from "@/types/review";
|
import { ReviewSegment } from "@/types/review";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { Skeleton } from "../ui/skeleton";
|
import { Skeleton } from "../ui/skeleton";
|
||||||
|
import { RecordingStartingPoint } from "@/types/record";
|
||||||
|
|
||||||
type AnimatedEventThumbnailProps = {
|
type AnimatedEventThumbnailProps = {
|
||||||
event: ReviewSegment;
|
event: ReviewSegment;
|
||||||
@ -18,7 +19,13 @@ export function AnimatedEventThumbnail({ event }: AnimatedEventThumbnailProps) {
|
|||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const onOpenReview = useCallback(() => {
|
const onOpenReview = useCallback(() => {
|
||||||
navigate("events", { state: { review: event.id } });
|
navigate("events", {
|
||||||
|
state: {
|
||||||
|
camera: event.camera,
|
||||||
|
startTime: event.start_time,
|
||||||
|
severity: event.severity,
|
||||||
|
} as RecordingStartingPoint,
|
||||||
|
});
|
||||||
}, [navigate, event]);
|
}, [navigate, event]);
|
||||||
|
|
||||||
// image behavior
|
// image behavior
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user