summaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-05-14 17:58:59 +0300
committerGitHub <noreply@github.com>2023-05-14 14:58:59 +0000
commit53a00017bbd89fddab11b323fc39872c44286d96 (patch)
treed532a88dbc5b9c12b2ef5829a7b81002eb64f298 /web_src/js
parentb92c142c97c3add1aed736a0a7c7ab044588662d (diff)
downloadgitea-53a00017bbd89fddab11b323fc39872c44286d96.tar.gz
gitea-53a00017bbd89fddab11b323fc39872c44286d96.zip
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: https://github.com/go-gitea/gitea/issues/24625 Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/components/ActionRunStatus.vue2
-rw-r--r--web_src/js/components/RepoActionView.vue2
2 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/components/ActionRunStatus.vue b/web_src/js/components/ActionRunStatus.vue
index 8852931891..0786cb60a9 100644
--- a/web_src/js/components/ActionRunStatus.vue
+++ b/web_src/js/components/ActionRunStatus.vue
@@ -2,7 +2,7 @@
Please also update the template file above if this vue is modified.
-->
<template>
- <span :data-tooltip-content="localeStatus">
+ <span :data-tooltip-content="localeStatus" v-if="status">
<SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
<SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
<SvgIcon name="octicon-clock" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>
diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue
index d6a3873751..7685627da6 100644
--- a/web_src/js/components/RepoActionView.vue
+++ b/web_src/js/components/RepoActionView.vue
@@ -19,7 +19,7 @@
<div class="action-commit-summary">
{{ run.commit.localeCommit }}
<a :href="run.commit.link">{{ run.commit.shortSHA }}</a>
- &nbsp;<span class="ui label">
+ &nbsp;<span class="ui label" v-if="run.commit.shortSHA">
<a :href="run.commit.branch.link">{{ run.commit.branch.name }}</a>
</span>
&nbsp;{{ run.commit.localePushedBy }}