Skip to content

Commit c57bb5d

Browse files
lunnyGiteaBot
authored andcommitted
Hide href attribute of a tag if there is no target_url (go-gitea#34556)
Relate go-gitea#34450
1 parent 7ed1e89 commit c57bb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/components/DashboardRepoList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export default defineComponent({
428428
<svg-icon name="octicon-archive" :size="16"/>
429429
</div>
430430
</a>
431-
<a class="tw-flex tw-items-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link" :data-tooltip-content="repo.locale_latest_commit_status_state">
431+
<a class="tw-flex tw-items-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link || null" :data-tooltip-content="repo.locale_latest_commit_status_state">
432432
<!-- the commit status icon logic is taken from templates/repo/commit_status.tmpl -->
433433
<svg-icon :name="statusIcon(repo.latest_commit_status_state)" :class="'tw-ml-2 commit-status icon text ' + statusColor(repo.latest_commit_status_state)" :size="16"/>
434434
</a>

0 commit comments

Comments
 (0)