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 && (
|
{!isScrubbing && (isLoading || isBuffering) && !noRecording && (
|
||||||
<ActivityIndicator className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" />
|
<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">
|
<div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
|
||||||
No recordings found for this time
|
No recordings found for this time
|
||||||
</div>
|
</div>
|
||||||
|
@ -957,7 +957,7 @@ function MotionReview({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!relevantPreviews) {
|
if (relevantPreviews == undefined) {
|
||||||
return <ActivityIndicator />;
|
return <ActivityIndicator />;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -999,7 +999,7 @@ function MotionReview({
|
|||||||
camera={camera.name}
|
camera={camera.name}
|
||||||
timeRange={currentTimeRange}
|
timeRange={currentTimeRange}
|
||||||
startTime={previewStart}
|
startTime={previewStart}
|
||||||
cameraPreviews={relevantPreviews || []}
|
cameraPreviews={relevantPreviews}
|
||||||
isScrubbing={scrubbing}
|
isScrubbing={scrubbing}
|
||||||
onControllerReady={(controller) => {
|
onControllerReady={(controller) => {
|
||||||
videoPlayersRef.current[camera.name] = controller;
|
videoPlayersRef.current[camera.name] = controller;
|
||||||
|
Loading…
Reference in New Issue
Block a user