Skip to content

Commit 3673200

Browse files
authored
Disable download action logs button when there's no logs (#26114)
If there's no logs, you can also click the download button, then you will get `job is not started` page ![image](https://github.com/go-gitea/gitea/assets/18380374/c0dad309-1fb9-4505-99da-bf0038423744) https://gitea.com/yp05327/testrepo/actions/runs/38 After: If there's no steps displayed, the download button will be disabled. ![image](https://github.com/go-gitea/gitea/assets/18380374/5f51ba70-3d0b-46d8-ad77-f02c4c8fa52c)
1 parent 79995a8 commit 3673200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/components/RepoActionView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<SvgIcon name="octicon-gear" :size="18"/>
7575
</button>
7676
<div class="menu transition action-job-menu" :class="{visible: menuVisible}" v-if="menuVisible" v-cloak>
77-
<a class="item" :href="run.link+'/jobs/'+jobIndex+'/logs'" target="_blank">
77+
<a :class="['item', currentJob.steps.length === 0 ? 'disabled' : '']" :href="run.link+'/jobs/'+jobIndex+'/logs'" target="_blank">
7878
<i class="icon"><SvgIcon name="octicon-download"/></i>
7979
{{ locale.downloadLogs }}
8080
</a>

0 commit comments

Comments
 (0)