mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Fix: fix saved views triggering changeafterchecked warning
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</li>
|
||||
}
|
||||
|
||||
@if (!savedViews) {
|
||||
@if (loading) {
|
||||
<li class="list-group-item">
|
||||
<div class="spinner-border spinner-border-sm fw-normal ms-2 me-auto" role="status"></div>
|
||||
<div class="visually-hidden" i18n>Loading...</div>
|
||||
|
@@ -61,11 +61,11 @@ export class SavedViewsComponent
|
||||
private toastService: ToastService
|
||||
) {
|
||||
super()
|
||||
this.settings.organizingSidebarSavedViews = true
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.settings.organizingSidebarSavedViews = true
|
||||
|
||||
this.loading = true
|
||||
this.savedViewService.listAll().subscribe((r) => {
|
||||
this.savedViews = r.results
|
||||
this.initialize()
|
||||
@@ -78,6 +78,7 @@ export class SavedViewsComponent
|
||||
}
|
||||
|
||||
private initialize() {
|
||||
this.loading = false
|
||||
this.emptyGroup(this.savedViewsGroup)
|
||||
|
||||
let storeData = {
|
||||
|
Reference in New Issue
Block a user