Skip to content

Commit

Permalink
chore: refactor config naming
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmarksilly committed Jan 13, 2022
1 parent 875c746 commit 4f28c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frigate/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion web/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<DarkModeProvider>
<DrawerProvider>
Expand Down

0 comments on commit 4f28c51

Please sign in to comment.