mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Reset recordings when changing the date (#13009)
This commit is contained in:
parent
dc04cf82d8
commit
009900b29b
@ -416,6 +416,7 @@ export default function Events() {
|
||||
if (selectedReviewData) {
|
||||
return (
|
||||
<RecordingView
|
||||
key={selectedTimeRange.before}
|
||||
startCamera={selectedReviewData.camera}
|
||||
startTime={selectedReviewData.start_time}
|
||||
allCameras={selectedReviewData.allCameras}
|
||||
|
@ -430,18 +430,7 @@ export function RecordingView({
|
||||
filterList={reviewFilterList}
|
||||
showReviewed
|
||||
setShowReviewed={() => {}}
|
||||
onUpdateFilter={(newFilter) => {
|
||||
// if we are resetting the date to last 24 hours
|
||||
// then we need to reset the playbackStart time
|
||||
if (
|
||||
filter?.before != undefined &&
|
||||
newFilter?.before == undefined
|
||||
) {
|
||||
setPlaybackStart(Date.now() / 1000 - 360);
|
||||
}
|
||||
|
||||
updateFilter(newFilter);
|
||||
}}
|
||||
onUpdateFilter={updateFilter}
|
||||
setMotionOnly={() => {}}
|
||||
/>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user