From: Bdale Garbee Date: Tue, 27 May 2025 07:14:13 +0000 (-0600) Subject: disable the Disarm button while a test is running .. just use End Test X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=2ac3f95a152e3dd2c63b34d68c36e2261ffc2604;p=fw%2Fquantimotor disable the Disarm button while a test is running .. just use End Test --- diff --git a/ui/index.html b/ui/index.html index 5630d15..8c84290 100644 --- a/ui/index.html +++ b/ui/index.html @@ -73,10 +73,12 @@ }; if (status == "idle") { status = "testing"; + document.querySelector('#ArmButton').setAttribute('disabled', true); document.querySelector('#startTest').textContent = 'End Test'; const response = fetch("/starttest", fetchOptions); } else { status = "idle"; + document.querySelector('#ArmButton').removeAttribute('disabled'); document.querySelector('#startTest').textContent = 'Start Test'; const response = fetch("/endtest", fetchOptions); armSystem();