Fix: fix saved views triggering changeafterchecked warning

This commit is contained in:
shamoon 2025-01-03 19:04:02 -08:00
parent 7fbe4d0aad
commit aef68f0b41
3 changed files with 7 additions and 6 deletions

View File

@ -8510,21 +8510,21 @@
<source>Saved view &quot;<x id="PH" equiv-text="savedView.name"/>&quot; deleted.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/manage/saved-views/saved-views.component.ts</context>
<context context-type="linenumber">132</context>
<context context-type="linenumber">133</context>
</context-group>
</trans-unit>
<trans-unit id="1660419335376265526" datatype="html">
<source>Views saved successfully.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/manage/saved-views/saved-views.component.ts</context>
<context context-type="linenumber">157</context>
<context context-type="linenumber">158</context>
</context-group>
</trans-unit>
<trans-unit id="1699877326523238632" datatype="html">
<source>Error while saving views.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/manage/saved-views/saved-views.component.ts</context>
<context context-type="linenumber">162</context>
<context context-type="linenumber">163</context>
</context-group>
</trans-unit>
<trans-unit id="5101757640976222639" datatype="html">

View File

@ -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>

View File

@ -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 = {