mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
UI fixes (#12542)
* Don't require previews to show motion ui * Fix recording text to match hls player logic
This commit is contained in:
parent
29345c429a
commit
68e6ffdfef
@ -238,7 +238,7 @@ export default function DynamicVideoPlayer({
|
||||
{!isScrubbing && (isLoading || isBuffering) && !noRecording && (
|
||||
<ActivityIndicator className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" />
|
||||
)}
|
||||
{!isScrubbing && noRecording && (
|
||||
{!isScrubbing && !isLoading && noRecording && (
|
||||
<div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
|
||||
No recordings found for this time
|
||||
</div>
|
||||
|
@ -957,7 +957,7 @@ function MotionReview({
|
||||
);
|
||||
}
|
||||
|
||||
if (!relevantPreviews) {
|
||||
if (relevantPreviews == undefined) {
|
||||
return <ActivityIndicator />;
|
||||
}
|
||||
|
||||
@ -999,7 +999,7 @@ function MotionReview({
|
||||
camera={camera.name}
|
||||
timeRange={currentTimeRange}
|
||||
startTime={previewStart}
|
||||
cameraPreviews={relevantPreviews || []}
|
||||
cameraPreviews={relevantPreviews}
|
||||
isScrubbing={scrubbing}
|
||||
onControllerReady={(controller) => {
|
||||
videoPlayersRef.current[camera.name] = controller;
|
||||
|
Loading…
Reference in New Issue
Block a user