Miscellaneous Fixes (#21193)

* Fix saving zone friendly name when it wasn't set

* Fix UTF-8 handling for Onvif

* Don't remove none directory for classes

* Lookup all event IDs for review item immediately

* Cleanup typing

* Only fetch events when review group is open

* Cleanup

* disable debug paths switch for autotracking cameras

* fix clickable birdseye

---------

Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
Nicolas Mowen
2025-12-09 12:08:44 -06:00
committed by GitHub
co-authored by Josh Hawkins
parent dfd837cfb0
commit 4cf4520ea7
8 changed files with 62 additions and 21 deletions
+4 -2
View File
@@ -28,12 +28,14 @@ type LiveBirdseyeViewProps = {
supportsFullscreen: boolean;
fullscreen: boolean;
toggleFullscreen: () => void;
onSelectCamera?: (cameraName: string) => void;
};
export default function LiveBirdseyeView({
supportsFullscreen,
fullscreen,
toggleFullscreen,
onSelectCamera,
}: LiveBirdseyeViewProps) {
const { t } = useTranslation(["views/live"]);
const { data: config } = useSWR<FrigateConfig>("config");
@@ -181,13 +183,13 @@ export default function LiveBirdseyeView({
canvasY >= parsedCoords.y &&
canvasY < parsedCoords.y + parsedCoords.height
) {
navigate(`/#${cameraName}`);
onSelectCamera?.(cameraName);
break;
}
}
}
},
[playerRef, config, birdseyeLayout, navigate],
[playerRef, config, birdseyeLayout, onSelectCamera],
);
if (!config) {
@@ -252,6 +252,10 @@ export default function ObjectSettingsView({
className="ml-1"
id={param}
checked={options && options[param]}
disabled={
param === "paths" &&
cameraConfig?.onvif?.autotracking?.enabled_in_config
}
onCheckedChange={(isChecked) => {
handleSetOption(param, isChecked);
}}