mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 02:27:06 +01:00
Fixhancement: display loading status for tags instead of 'Private' (#11140)
This commit is contained in:
parent
faf3e8dc0d
commit
893c05dfdc
7 changed files with 50 additions and 23 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -53,4 +53,8 @@ export class TagComponent {
|
|||
|
||||
@Input()
|
||||
showParents: boolean = false
|
||||
|
||||
public get loading(): boolean {
|
||||
return this.tagService.loading
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue