aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-12-12 11:28:23 -0800
committerGitHub <noreply@github.com>2024-12-12 19:28:23 +0000
commit6370d2fb93a5ee897b82969ca30a9feb33667714 (patch)
tree5f2414f66869e5680feb1f12dc71e71e5a1ec544 /web_src/js
parentc9487a755b742fd2257f57cec1ead3f4c71174d7 (diff)
downloadgitea-6370d2fb93a5ee897b82969ca30a9feb33667714.tar.gz
gitea-6370d2fb93a5ee897b82969ca30a9feb33667714.zip
Detect whether action view branch was deleted (#32764)
Fix #32761 ![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/components/RepoActionView.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue
index 7f647b668a..eece2efaf8 100644
--- a/web_src/js/components/RepoActionView.vue
+++ b/web_src/js/components/RepoActionView.vue
@@ -429,7 +429,8 @@ export function initRepositoryActionView() {
<a class="muted" :href="run.commit.pusher.link">{{ run.commit.pusher.displayName }}</a>
</template>
<span class="ui label tw-max-w-full" v-if="run.commit.shortSHA">
- <a class="gt-ellipsis" :href="run.commit.branch.link">{{ run.commit.branch.name }}</a>
+ <span v-if="run.commit.branch.isDeleted" class="gt-ellipsis tw-line-through" :data-tooltip-content="run.commit.branch.name">{{ run.commit.branch.name }}</span>
+ <a v-else class="gt-ellipsis" :href="run.commit.branch.link" :data-tooltip-content="run.commit.branch.name">{{ run.commit.branch.name }}</a>
</span>
</div>
</div>