From 6f7c32ac02374420529dfaae28b98841ab1cc08a Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 12 Oct 2025 18:21:45 -0500 Subject: [PATCH] only display validation results and enable save button if all streams have been tested --- .../components/settings/Step3Validation.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/web/src/components/settings/Step3Validation.tsx b/web/src/components/settings/Step3Validation.tsx index 50f7e8628..393a72f24 100644 --- a/web/src/components/settings/Step3Validation.tsx +++ b/web/src/components/settings/Step3Validation.tsx @@ -226,7 +226,8 @@ export default function Step3Validation({ return ( wizardData.cameraName && wizardData.streams?.length && - wizardData.streams.some((s) => s.roles.includes("detect")) + wizardData.streams.some((s) => s.roles.includes("detect")) && + wizardData.streams.every((s) => s.testResult) // All streams must be tested ); }, [wizardData]); @@ -331,13 +332,15 @@ export default function Step3Validation({ -
- -
+ {result && ( +
+ +
+ )} {result && !result.success && (