diff --git a/src/common/runtime/standalone.ts b/src/common/runtime/standalone.ts index be5887c1721e..1676f0ea58ad 100644 --- a/src/common/runtime/standalone.ts +++ b/src/common/runtime/standalone.ts @@ -427,11 +427,20 @@ function makeTreeNodeHeaderHTML( .attr('alt', runtext) .attr('title', runtext) .on('click', async () => { + if (runDepth > 0) { + showInfo('tests are already running'); + return; + } + showInfo(''); console.log(`Starting run for ${n.query}`); + // turn off all run buttons + $('#resultsVis').addClass('disable-run'); const startTime = performance.now(); await runSubtree(); const dt = performance.now() - startTime; const dtMinutes = dt / 1000 / 60; + // turn on all run buttons + $('#resultsVis').removeClass('disable-run'); console.log(`Finished run: ${dt.toFixed(1)} ms = ${dtMinutes.toFixed(1)} min`); }) .appendTo(header); diff --git a/standalone/index.html b/standalone/index.html index 3c7d41e80bd2..85ce1a9e6e93 100644 --- a/standalone/index.html +++ b/standalone/index.html @@ -148,7 +148,7 @@ width: 100%; left: 0; top: 0; - background-color: #000; + background-color: #068; color: #fff; align-items: center; } @@ -170,6 +170,13 @@ border-right: 1px solid var(--results-fg-color); } + /* PS: this does not disable using the keyboard to click */ + #resultsVis.disable-run button.leafrun, + #resultsVis.disable-run button.subtreerun { + pointer-events: none; + opacity: 25%; + } + /* tree nodes */ .nodeheader {