From 66daafe1f0ec0a99a2cbb1b02ce4c16f68f7a864 Mon Sep 17 00:00:00 2001 From: JGerla Date: Thu, 15 Jan 2026 12:21:09 +0100 Subject: [PATCH] feat: added disabling of runProgram button if program is not valid ref: N25B-450 --- src/pages/VisProgPage/VisProg.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/VisProgPage/VisProg.tsx b/src/pages/VisProgPage/VisProg.tsx index a083bbf..a31665f 100644 --- a/src/pages/VisProgPage/VisProg.tsx +++ b/src/pages/VisProgPage/VisProg.tsx @@ -186,10 +186,17 @@ function graphReducer() { * @constructor */ function VisProgPage() { + const [programValidity, setProgramValidity] = useState(true); + const sIndex = useFlowStore.getState().severityIndex; + + useEffect(() => { + setProgramValidity(useFlowStore.getState().isProgramValid) + }, [sIndex]); + return ( <> - + ) }