From aef68f0b415d8bdc65f9c1b5df7d21708a49575b Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Fri, 3 Jan 2025 19:04:02 -0800
Subject: [PATCH] Fix: fix saved views triggering changeafterchecked warning
---
src-ui/messages.xlf | 6 +++---
.../manage/saved-views/saved-views.component.html | 2 +-
.../components/manage/saved-views/saved-views.component.ts | 5 +++--
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index c22fdc535..4964096c7 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -8510,21 +8510,21 @@
Saved view "" deleted.
src/app/components/manage/saved-views/saved-views.component.ts
- 132
+ 133
Views saved successfully.
src/app/components/manage/saved-views/saved-views.component.ts
- 157
+ 158
Error while saving views.
src/app/components/manage/saved-views/saved-views.component.ts
- 162
+ 163
diff --git a/src-ui/src/app/components/manage/saved-views/saved-views.component.html b/src-ui/src/app/components/manage/saved-views/saved-views.component.html
index 58111fa5e..296cf71ac 100644
--- a/src-ui/src/app/components/manage/saved-views/saved-views.component.html
+++ b/src-ui/src/app/components/manage/saved-views/saved-views.component.html
@@ -62,7 +62,7 @@
}
- @if (!savedViews) {
+ @if (loading) {
Loading...
diff --git a/src-ui/src/app/components/manage/saved-views/saved-views.component.ts b/src-ui/src/app/components/manage/saved-views/saved-views.component.ts
index c9ccf9355..ee2b00c2b 100644
--- a/src-ui/src/app/components/manage/saved-views/saved-views.component.ts
+++ b/src-ui/src/app/components/manage/saved-views/saved-views.component.ts
@@ -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 = {