mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Cleanup
This commit is contained in:
parent
2241c85a85
commit
d9c0798ab5
@ -95,6 +95,11 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
: "text-gray-400"
|
||||
: "text-red-500"
|
||||
}
|
||||
onClick={() =>
|
||||
camera.record.enabled_in_config
|
||||
? sendRecord(recordValue == "ON" ? "OFF" : "ON")
|
||||
: {}
|
||||
}
|
||||
>
|
||||
<TbMovie />
|
||||
</Button>
|
||||
@ -103,6 +108,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
className={`${
|
||||
snapshotValue == "ON" ? "text-primary" : "text-gray-400"
|
||||
}`}
|
||||
onClick={() => sendSnapshot(detectValue == "ON" ? "OFF" : "ON")}
|
||||
>
|
||||
<AiOutlinePicture />
|
||||
</Button>
|
||||
@ -112,6 +118,7 @@ function Camera({ camera }: { camera: CameraConfig }) {
|
||||
className={`${
|
||||
audioValue == "ON" ? "text-primary" : "text-gray-400"
|
||||
}`}
|
||||
onClick={() => sendAudio(detectValue == "ON" ? "OFF" : "ON")}
|
||||
>
|
||||
<LuEar />
|
||||
</Button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user