feat: The Big One UI #47

Merged
j.gerla merged 115 commits from temp_screenshot_manual into dev 2026-01-28 08:27:30 +00:00
Showing only changes of commit 66daafe1f0 - Show all commits

View File

@@ -186,10 +186,17 @@ function graphReducer() {
* @constructor
*/
function VisProgPage() {
const [programValidity, setProgramValidity] = useState<boolean>(true);
const sIndex = useFlowStore.getState().severityIndex;
useEffect(() => {
setProgramValidity(useFlowStore.getState().isProgramValid)
}, [sIndex]);
return (
<>
<VisualProgrammingUI/>
<button onClick={runProgram}>run program</button>
<button onClick={runProgram} disabled={programValidity}>run program</button>
</>
)
}