Skip to content

Commit 53a0001

Browse files
Fix flash of unstyled content in action view page (#24712)
# Before ![rec](https://github.com/go-gitea/gitea/assets/20454870/32f8e521-f743-4101-bd3c-923fd5abd893) # After ![rec](https://github.com/go-gitea/gitea/assets/20454870/070721d1-6749-43c1-ac18-d8c58e5f0901) Ref: #24625 Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io>
1 parent b92c142 commit 53a0001

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web_src/js/components/ActionRunStatus.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Please also update the template file above if this vue is modified.
33
-->
44
<template>
5-
<span :data-tooltip-content="localeStatus">
5+
<span :data-tooltip-content="localeStatus" v-if="status">
66
<SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
77
<SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
88
<SvgIcon name="octicon-clock" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>

web_src/js/components/RepoActionView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="action-commit-summary">
2020
{{ run.commit.localeCommit }}
2121
<a :href="run.commit.link">{{ run.commit.shortSHA }}</a>
22-
&nbsp;<span class="ui label">
22+
&nbsp;<span class="ui label" v-if="run.commit.shortSHA">
2323
<a :href="run.commit.branch.link">{{ run.commit.branch.name }}</a>
2424
</span>
2525
&nbsp;{{ run.commit.localePushedBy }}

0 commit comments

Comments
 (0)