mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Add camera enable switch to mobile drawer (#16929)
This commit is contained in:
parent
56079d080d
commit
5210d8c0a2
@ -1399,6 +1399,13 @@ function FrigateCameraFeatures({
|
|||||||
</DrawerTrigger>
|
</DrawerTrigger>
|
||||||
<DrawerContent className="rounded-2xl px-2 py-4">
|
<DrawerContent className="rounded-2xl px-2 py-4">
|
||||||
<div className="mt-2 flex flex-col gap-2">
|
<div className="mt-2 flex flex-col gap-2">
|
||||||
|
<FilterSwitch
|
||||||
|
label="Camera Enabled"
|
||||||
|
isChecked={enabledState == "ON"}
|
||||||
|
onCheckedChange={() =>
|
||||||
|
sendEnabled(enabledState == "ON" ? "OFF" : "ON")
|
||||||
|
}
|
||||||
|
/>
|
||||||
<FilterSwitch
|
<FilterSwitch
|
||||||
label="Object Detection"
|
label="Object Detection"
|
||||||
isChecked={detectState == "ON"}
|
isChecked={detectState == "ON"}
|
||||||
|
Loading…
Reference in New Issue
Block a user