Always create Actions logs stepsContainer (#35654) (#35672)

Backport #35654 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
pull/35667/head^2
Giteabot 2025-10-15 12:16:06 +08:00 committed by GitHub
parent 602af1499e
commit ae2e8c1f00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -601,7 +601,8 @@ export default defineComponent({
</div>
</div>
</div>
<div class="job-step-container" ref="stepsContainer" v-if="currentJob.steps.length">
<!-- always create the node because we have our own event listeners on it, don't use "v-if" -->
<div class="job-step-container" ref="stepsContainer" v-show="currentJob.steps.length">
<div class="job-step-section" v-for="(jobStep, i) in currentJob.steps" :key="i">
<div class="job-step-summary" @click.stop="isExpandable(jobStep.status) && toggleStepLogs(i)" :class="[currentJobStepsStates[i].expanded ? 'selected' : '', isExpandable(jobStep.status) && 'step-expandable']">
<!-- If the job is done and the job step log is loaded for the first time, show the loading icon