UI Tweaks (#20403)
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
Stalebot / stale (push) Has been cancelled

* Fix context menu link to debug

* Use genai title for tooltip when available
This commit is contained in:
Nicolas Mowen
2025-10-09 09:49:42 -05:00
committed by GitHub
parent f4e7549311
commit 24a1874225
6 changed files with 52 additions and 22 deletions
+9
View File
@@ -111,6 +111,7 @@ import { Trans, useTranslation } from "react-i18next";
import { useDocDomain } from "@/hooks/use-doc-domain";
import PtzControlPanel from "@/components/overlay/PtzControlPanel";
import ObjectSettingsView from "../settings/ObjectSettingsView";
import { useSearchEffect } from "@/hooks/use-overlay-state";
type LiveCameraViewProps = {
config?: FrigateConfig;
@@ -274,6 +275,14 @@ export default function LiveCameraView({
const [showStats, setShowStats] = useState(false);
const [debug, setDebug] = useState(false);
useSearchEffect("debug", (value: string) => {
if (value === "true") {
setDebug(true);
}
return true;
});
const [fullResolution, setFullResolution] = useState<VideoResolutionType>({
width: 0,
height: 0,
+5 -1
View File
@@ -114,7 +114,11 @@ export default function LiveDashboardView({
// if event is ended and was saved, update events list
if (eventUpdate.after.severity == "alert") {
if (eventUpdate.type == "end" || eventUpdate.type == "new") {
if (
eventUpdate.type == "end" ||
eventUpdate.type == "new" ||
eventUpdate.type == "genai"
) {
setTimeout(
() => updateEvents(),
eventUpdate.type == "end" ? 1000 : 6000,