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

@@ -17,7 +17,6 @@ export class SavedViewService extends AbstractPaperlessService<SavedView> {
private settingsService = inject(SettingsService)
private documentService = inject(DocumentService)
public loading: boolean = true
private savedViews: SavedView[] = []
private savedViewDocumentCounts: Map<number, number> = new Map()
private unsubscribeNotifier: Subject<void> = new Subject<void>()
@@ -38,12 +37,12 @@ export class SavedViewService extends AbstractPaperlessService<SavedView> {
tap({
next: (r) => {
this.savedViews = r.results
this.loading = false
this._loading = false
this.settingsService.dashboardIsEmpty =
this.dashboardViews.length === 0
},
error: () => {
this.loading = false
this._loading = false
this.settingsService.dashboardIsEmpty = true
},
})