mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	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  https://gitea.com/yp05327/testrepo/actions/runs/38 After: If there's no steps displayed, the download button will be disabled. 
This commit is contained in:
		| @@ -74,7 +74,7 @@ | ||||
|                 <SvgIcon name="octicon-gear" :size="18"/> | ||||
|               </button> | ||||
|               <div class="menu transition action-job-menu" :class="{visible: menuVisible}" v-if="menuVisible" v-cloak> | ||||
|                 <a class="item" :href="run.link+'/jobs/'+jobIndex+'/logs'" target="_blank"> | ||||
|                 <a :class="['item', currentJob.steps.length === 0 ? 'disabled' : '']" :href="run.link+'/jobs/'+jobIndex+'/logs'" target="_blank"> | ||||
|                   <i class="icon"><SvgIcon name="octicon-download"/></i> | ||||
|                   {{ locale.downloadLogs }} | ||||
|                 </a> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 yp05327
					yp05327