fix: keep stop action available during active runs
This commit is contained in:
@@ -1004,7 +1004,7 @@ function syncTaskChrome() {
|
||||
const hasLiveRun = Boolean(state.task.run_id) && !state.task.finished_at;
|
||||
const isActive = ['starting', 'running'].includes(status);
|
||||
const isStopping = status === 'stopping';
|
||||
const canStop = hasLiveRun && ['starting', 'running', 'failed'].includes(status);
|
||||
const canStop = ['starting', 'running', 'stopping', 'failed'].includes(status) || hasLiveRun;
|
||||
DOM.btnStart.disabled = hasLiveRun || isStopping;
|
||||
DOM.btnStop.disabled = !canStop;
|
||||
DOM.progressFill.className = isActive
|
||||
|
||||
Reference in New Issue
Block a user