Add camera enable switch to mobile drawer (#16929)

This commit is contained in:
Josh Hawkins 2025-03-03 18:41:28 -06:00 committed by GitHub
parent 56079d080d
commit 5210d8c0a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1399,6 +1399,13 @@ function FrigateCameraFeatures({
</DrawerTrigger>
<DrawerContent className="rounded-2xl px-2 py-4">
<div className="mt-2 flex flex-col gap-2">
<FilterSwitch
label="Camera Enabled"
isChecked={enabledState == "ON"}
onCheckedChange={() =>
sendEnabled(enabledState == "ON" ? "OFF" : "ON")
}
/>
<FilterSwitch
label="Object Detection"
isChecked={detectState == "ON"}