diff --git a/src/frontend/flask_app/templates/measure/task_execute.html b/src/frontend/flask_app/templates/measure/task_execute.html index 4dabd82..191dd22 100644 --- a/src/frontend/flask_app/templates/measure/task_execute.html +++ b/src/frontend/flask_app/templates/measure/task_execute.html @@ -885,8 +885,16 @@ function taskExecute() { return; } - // Check if all done — show overlay but do NOT auto-navigate + // Check if all done if (this.completedCount >= this.totalSubtasks) { + // START run (production not yet started): don't block with the + // "Misurazioni Complete" overlay — just advance to the next task. + // The overlay is shown only on the last task (to offer "Avvio + // Produzione") or once production is running ("Conferma ciclo"). + if (!this.productionStarted && !this.isLastTask) { + this.goToNextTask(); + return; + } this.showCompletionOverlay = true; return; }