mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-26 22:08:57 +03:00
UI tweaks and fixes (#22448)
* fix double scrollbar in debug replay * always hide ffmpeg cpu warnings for replay cameras * add slovenian * fix motion previews on safari and ios match the logic used in ScrubbablePreview for manually stepping currentTime at the correct rate * prevent motion recalibration when opening motion tuner
This commit is contained in:
@@ -38,6 +38,7 @@ const localeMap: Record<string, () => Promise<Locale>> = {
|
||||
th: () => import("date-fns/locale/th").then((module) => module.th),
|
||||
ca: () => import("date-fns/locale/ca").then((module) => module.ca),
|
||||
hr: () => import("date-fns/locale/hr").then((module) => module.hr),
|
||||
sl: () => import("date-fns/locale/sl").then((module) => module.sl),
|
||||
};
|
||||
|
||||
export function useDateLocale(): Locale {
|
||||
|
||||
@@ -106,13 +106,11 @@ export default function useStats(stats: FrigateStats | undefined) {
|
||||
|
||||
const cameraName = config?.cameras?.[name]?.friendly_name ?? name;
|
||||
|
||||
// Skip ffmpeg warnings for replay cameras when debug replay is active
|
||||
// Skip ffmpeg warnings for replay cameras
|
||||
if (
|
||||
!isNaN(ffmpegAvg) &&
|
||||
ffmpegAvg >= CameraFfmpegThreshold.error &&
|
||||
!(
|
||||
debugReplayStatus?.active && debugReplayStatus?.replay_camera === name
|
||||
)
|
||||
!isReplayCamera(name)
|
||||
) {
|
||||
problems.push({
|
||||
text: t("stats.ffmpegHighCpuUsage", {
|
||||
|
||||
Reference in New Issue
Block a user