From e5ea1e8ae3c2e820829360933303099fad22aa7c Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 25 Mar 2024 02:41:39 +0100 Subject: [PATCH] Auto-expand running actions step --- web_src/js/components/RepoActionView.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index 26dffcda9e..b003a9125b 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/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) {