mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Don't show mark reviewed button when all items are in progress (#11636)
* Don't show mark reviewed button when all items are in progress * Fix unknown preview file
This commit is contained in:
parent
4135cabf58
commit
ec88752666
@ -209,7 +209,12 @@ class PreviewRecorder:
|
|||||||
os.unlink(os.path.join(PREVIEW_CACHE_DIR, file))
|
os.unlink(os.path.join(PREVIEW_CACHE_DIR, file))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
ts = float(file.split("-")[1][: -(len(PREVIEW_FRAME_TYPE) + 1)])
|
file_time = file.split("-")[1][: -(len(PREVIEW_FRAME_TYPE) + 1)]
|
||||||
|
|
||||||
|
if not file_time:
|
||||||
|
continue
|
||||||
|
|
||||||
|
ts = float(file_time)
|
||||||
|
|
||||||
if self.start_time == 0:
|
if self.start_time == 0:
|
||||||
self.start_time = ts
|
self.start_time = ts
|
||||||
|
@ -588,7 +588,7 @@ function DetectionReview({
|
|||||||
<Skeleton key={idx} className="aspect-video size-full" />
|
<Skeleton key={idx} className="aspect-video size-full" />
|
||||||
))}
|
))}
|
||||||
{!loading &&
|
{!loading &&
|
||||||
(currentItems?.length ?? 0) > 0 &&
|
(currentItems?.filter((seg) => seg.end_time)?.length ?? 0) > 0 &&
|
||||||
(itemsToReview ?? 0) > 0 && (
|
(itemsToReview ?? 0) > 0 && (
|
||||||
<div className="col-span-full flex items-center justify-center">
|
<div className="col-span-full flex items-center justify-center">
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user