mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Fix opening page on icon toggle
This commit is contained in:
parent
cc95fd9901
commit
4a4fceec5c
@ -94,7 +94,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card className="">
|
||||
<Card>
|
||||
<a href={`/live/${camera.name}`}>
|
||||
<AspectRatio
|
||||
ratio={16 / 9}
|
||||
@ -115,6 +115,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
}`}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
sendDetect(detectValue == "ON" ? "OFF" : "ON");
|
||||
}}
|
||||
>
|
||||
@ -132,6 +133,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
camera.record.enabled_in_config
|
||||
? sendRecord(recordValue == "ON" ? "OFF" : "ON")
|
||||
: {};
|
||||
@ -147,6 +149,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
}`}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
sendSnapshot(detectValue == "ON" ? "OFF" : "ON");
|
||||
}}
|
||||
>
|
||||
@ -161,6 +164,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
}`}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
sendAudio(detectValue == "ON" ? "OFF" : "ON");
|
||||
}}
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user