Fixhancement: display loading status for tags instead of 'Private' (#11140)

This commit is contained in:
shamoon
2025-10-22 18:01:50 -07:00
committed by GitHub
parent faf3e8dc0d
commit 893c05dfdc
7 changed files with 50 additions and 23 deletions

View File

@@ -9,6 +9,12 @@
@if (clickable) {
<a [title]="linkTitle" class="badge" [style.background]="tag.color" [style.color]="tag.text_color">{{tag.name}}</a>
}
} @else if (loading) {
<span class="placeholder-glow">
<span class="placeholder badge private">
<span class="text-dark">Loading...</span>
</span>
</span>
} @else {
@if (!clickable) {
<span class="badge private" i18n>Private</span>

View File

@@ -53,4 +53,8 @@ export class TagComponent {
@Input()
showParents: boolean = false
public get loading(): boolean {
return this.tagService.loading
}
}