From 27d4c112959cd3df56739aa66fce6f0edab5ec1f Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 10 Nov 2025 18:46:32 -0600 Subject: [PATCH] frontend --- .../settings/wizard/Step1NameCamera.tsx | 29 +++++++++++++++++++ .../settings/wizard/Step2ProbeOrSnapshot.tsx | 1 + web/src/types/cameraWizard.ts | 1 + 3 files changed, 31 insertions(+) diff --git a/web/src/components/settings/wizard/Step1NameCamera.tsx b/web/src/components/settings/wizard/Step1NameCamera.tsx index 0467b54b8..9ef2f2c64 100644 --- a/web/src/components/settings/wizard/Step1NameCamera.tsx +++ b/web/src/components/settings/wizard/Step1NameCamera.tsx @@ -8,6 +8,7 @@ import { FormLabel, FormMessage, } from "@/components/ui/form"; +import { Checkbox } from "@/components/ui/checkbox"; import { Input } from "@/components/ui/input"; import { Select, @@ -81,6 +82,7 @@ export default function Step1NameCamera({ password: z.string().optional(), brandTemplate: z.enum(CAMERA_BRAND_VALUES).optional(), onvifPort: z.coerce.number().int().min(1).max(65535).optional(), + useDigestAuth: z.boolean().optional(), customUrl: z .string() .optional() @@ -118,6 +120,7 @@ export default function Step1NameCamera({ : "dahua", customUrl: wizardData.customUrl || "", onvifPort: wizardData.onvifPort ?? 80, + useDigestAuth: wizardData.useDigestAuth ?? false, }, mode: "onChange", }); @@ -330,6 +333,32 @@ export default function Step1NameCamera({ /> )} + {probeMode && ( + ( + + + field.onChange(!!val)} + /> + +
+ + {t("cameraWizard.step1.useDigestAuth")} + + + {t("cameraWizard.step1.useDigestAuthDescription")} + +
+
+ )} + /> + )} + {!probeMode && (