mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-05 14:22:52 +03:00
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
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user