mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-26 10:08:22 +03:00
only display validation results and enable save button if all streams have been tested
This commit is contained in:
parent
71e0ead490
commit
6f7c32ac02
@ -226,7 +226,8 @@ export default function Step3Validation({
|
|||||||
return (
|
return (
|
||||||
wizardData.cameraName &&
|
wizardData.cameraName &&
|
||||||
wizardData.streams?.length &&
|
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]);
|
}, [wizardData]);
|
||||||
|
|
||||||
@ -331,13 +332,15 @@ export default function Step3Validation({
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="rounded-lg bg-background p-3">
|
{result && (
|
||||||
<StreamIssues
|
<div className="rounded-lg bg-background p-3">
|
||||||
stream={stream}
|
<StreamIssues
|
||||||
measuredBandwidth={measuredBandwidth}
|
stream={stream}
|
||||||
wizardData={wizardData}
|
measuredBandwidth={measuredBandwidth}
|
||||||
/>
|
wizardData={wizardData}
|
||||||
</div>
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{result && !result.success && (
|
{result && !result.success && (
|
||||||
<div className="rounded-md border border-danger/20 bg-danger/10 p-3 text-sm text-danger">
|
<div className="rounded-md border border-danger/20 bg-danger/10 p-3 text-sm text-danger">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user