]> git.gag.com Git - fw/quantimotor/commitdiff
disable the Disarm button while a test is running .. just use End Test
authorBdale Garbee <bdale@gag.com>
Tue, 27 May 2025 07:14:13 +0000 (01:14 -0600)
committerBdale Garbee <bdale@gag.com>
Tue, 27 May 2025 07:14:13 +0000 (01:14 -0600)
ui/index.html

index 5630d1542431366e214dfc7e0342e4236b38be24..8c8429038f91a8bedc3dcc6a50264e2967944e97 100644 (file)
         };
         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();