mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Mark items as reviewed when manually seeking (#10494)
This commit is contained in:
parent
89bd3867a9
commit
cf6ef84271
@ -433,10 +433,17 @@ function VideoPreview({
|
|||||||
setIgnoreClick(true);
|
setIgnoreClick(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (setReviewed && !review.has_been_reviewed) {
|
||||||
|
setReviewed();
|
||||||
|
}
|
||||||
|
|
||||||
setProgress(value);
|
setProgress(value);
|
||||||
playerRef.current.currentTime =
|
playerRef.current.currentTime =
|
||||||
playerStartTime + (value / 100.0) * playerDuration;
|
playerStartTime + (value / 100.0) * playerDuration;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// we know that these deps are correct
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[
|
[
|
||||||
manualPlayback,
|
manualPlayback,
|
||||||
playerDuration,
|
playerDuration,
|
||||||
@ -585,8 +592,15 @@ function InProgressPreview({
|
|||||||
setIgnoreClick(true);
|
setIgnoreClick(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!review.has_been_reviewed) {
|
||||||
|
setReviewed(review.id);
|
||||||
|
}
|
||||||
|
|
||||||
setKey(value);
|
setKey(value);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// we know that these deps are correct
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[manualFrame, setIgnoreClick, setManualFrame, setKey],
|
[manualFrame, setIgnoreClick, setManualFrame, setKey],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user