mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55:26 +03:00
Audio toggle fixes
This commit is contained in:
parent
cc3f028923
commit
a7adb674e4
@ -99,7 +99,7 @@ export default function DynamicCameraImage({
|
|||||||
activeObjects.length > 0 ? "text-object" : "text-gray-600"
|
activeObjects.length > 0 ? "text-object" : "text-gray-600"
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
{camera.audio.enabled && (
|
{camera.audio.enabled_in_config && (
|
||||||
<LuEar
|
<LuEar
|
||||||
className={`${
|
className={`${
|
||||||
parseInt(audioRms) >= camera.audio.min_volume
|
parseInt(audioRms) >= camera.audio.min_volume
|
||||||
|
|||||||
@ -159,7 +159,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
|||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
sendAudio(detectValue == "ON" ? "OFF" : "ON");
|
sendAudio(audioValue == "ON" ? "OFF" : "ON");
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<LuEar />
|
<LuEar />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user