mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
Don't show "changed files" if event can't have them (#1191)
Closes #1190
This commit is contained in:
parent
ac2f1d26e8
commit
00a475f605
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@
|
||||||
<Tabs v-model="activeTab" disable-hash-mode class="order-2 md:order-none">
|
<Tabs v-model="activeTab" disable-hash-mode class="order-2 md:order-none">
|
||||||
<Tab id="tasks" :title="$t('repo.build.tasks')" />
|
<Tab id="tasks" :title="$t('repo.build.tasks')" />
|
||||||
<Tab id="config" :title="$t('repo.build.config')" />
|
<Tab id="config" :title="$t('repo.build.config')" />
|
||||||
<Tab id="changed-files" :title="$t('repo.build.files', { files: build.changed_files?.length || 0 })" />
|
<Tab
|
||||||
|
v-if="build.event === 'push' || build.event === 'pull_request'"
|
||||||
|
id="changed-files"
|
||||||
|
:title="$t('repo.build.files', { files: build.changed_files?.length || 0 })"
|
||||||
|
/>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
<div class="flex justify-between gap-x-4 text-color flex-shrink-0 pb-2 md:p-0 mx-auto md:mr-0">
|
<div class="flex justify-between gap-x-4 text-color flex-shrink-0 pb-2 md:p-0 mx-auto md:mr-0">
|
||||||
|
|
Loading…
Reference in a new issue