浏览代码

Auto-expand running actions step

pull/30058/head
bytedream 2 个月前
父节点
当前提交
e5ea1e8ae3
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      web_src/js/components/RepoActionView.vue

+ 6
- 0
web_src/js/components/RepoActionView.vue 查看文件

@@ -247,6 +247,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) {

正在加载...
取消
保存