From 4f28c51a0f86c8d4f2a6ba365c93872d0370f9a7 Mon Sep 17 00:00:00 2001 From: JohnMark Sill Date: Thu, 13 Jan 2022 14:28:23 -0600 Subject: [PATCH] chore: refactor config naming --- frigate/config.py | 2 +- web/src/App.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/config.py b/frigate/config.py index f69406ee5..2e4aee67d 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -44,7 +44,7 @@ class DetectorConfig(FrigateBaseModel): num_threads: int = Field(default=3, title="Number of detection threads") class UIConfig(FrigateBaseModel): - useExperimentalUI: bool = Field(default=False, title="Experimental UI") + use_experimental: bool = Field(default=False, title="Experimental UI") class MqttConfig(FrigateBaseModel): host: str = Field(title="MQTT Host") diff --git a/web/src/App.jsx b/web/src/App.jsx index 545ce450f..d7f5a13ef 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -11,7 +11,7 @@ import { FetchStatus, useConfig } from './api'; export default function App() { const { status, data: config } = useConfig(); - const cameraComponent = config && config.ui.useExperimentalUI ? Routes.getCameraV2 : Routes.getCamera; + const cameraComponent = config && config.ui.use_experimental ? Routes.getCameraV2 : Routes.getCamera; return (