Use html list for changed files list (#2346)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/743317fa-cce6-4eb5-aaa4-7f38aadfcb66)
This commit is contained in:
Robert Kaussow
2023-08-29 15:06:56 +02:00
committed by GitHub
parent 5bd12aa646
commit d155dfdecb
2 changed files with 10 additions and 9 deletions

View File

@@ -61,9 +61,13 @@
<Tab id="tasks" :title="$t('repo.pipeline.tasks')" />
<Tab id="config" :title="$t('repo.pipeline.config')" />
<Tab
v-if="pipeline.event === 'push' || pipeline.event === 'pull_request'"
v-if="
(pipeline.event === 'push' || pipeline.event === 'pull_request') &&
pipeline.changed_files &&
pipeline.changed_files.length > 0
"
id="changed-files"
:title="$t('repo.pipeline.files', { files: pipeline.changed_files?.length || 0 })"
:title="$t('repo.pipeline.files', { files: pipeline.changed_files.length })"
/>
<router-view />
</Scaffold>