This commit is contained in:
bytedream 2024-05-06 00:46:02 +08:00 committed by GitHub
commit 7eba98504d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -250,6 +250,12 @@ const sfc = {
// initial states for job steps
this.currentJobStepsStates[i] = {cursor: null, expanded: false};
}
// expands the currently running job step if its state wasn't 'running' before
if (this.currentJob.steps[i].status === 'running' && this.currentJobStepsStates[i].cursor === null) {
this.currentJobStepsStates[i].cursor = 0;
this.currentJobStepsStates[i].expanded = true;
}
}
// append logs to the UI
for (const logs of job.logs.stepsLog) {