Skip to content

Commit e5ea1e8

Browse files
committed
Auto-expand running actions step
1 parent 3f26fe2 commit e5ea1e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web_src/js/components/RepoActionView.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ const sfc = {
247247
// initial states for job steps
248248
this.currentJobStepsStates[i] = {cursor: null, expanded: false};
249249
}
250+
251+
// expands the currently running job step if its state wasn't 'running' before
252+
if (this.currentJob.steps[i].status === 'running' && this.currentJobStepsStates[i].cursor === null) {
253+
this.currentJobStepsStates[i].cursor = 0;
254+
this.currentJobStepsStates[i].expanded = true;
255+
}
250256
}
251257
// append logs to the UI
252258
for (const logs of job.logs.stepsLog) {

0 commit comments

Comments
 (0)