0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-10-16 12:44:20 -04:00

Always create Actions logs stepsContainer (#35654)

This commit is contained in:
wxiaoguang
2025-10-15 12:07:58 +08:00
committed by GitHub
parent 16fc3323b9
commit 9ae2e9e76f

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