mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-20 07:44:56 +00:00
Don't show "changed files" if event can't have them (#1191)
Closes #1190
This commit is contained in:
@@ -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">
|
||||||
|
Reference in New Issue
Block a user