mirror of
https://github.com/go-gitea/gitea
synced 2025-01-02 15:46:05 +01:00
Auto-expand running actions step
This commit is contained in:
parent
3f26fe2fa2
commit
e5ea1e8ae3
@ -247,6 +247,12 @@ const sfc = {
|
|||||||
// initial states for job steps
|
// initial states for job steps
|
||||||
this.currentJobStepsStates[i] = {cursor: null, expanded: false};
|
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
|
// append logs to the UI
|
||||||
for (const logs of job.logs.stepsLog) {
|
for (const logs of job.logs.stepsLog) {
|
||||||
|
Loading…
Reference in New Issue
Block a user