Fix: prevent loss of save view name on save + close (#14667)

This commit is contained in:
shamoon authored and GitHub committed 2026-11-02 22:11:09 -08:00
1 parent d2f4cfa783
commit 04bae0af62
1 file changed
+3 -2
@@ -411,6 +411,7 @@ export class DocumentListComponent
display_mode: this.list.displayMode,
display_fields: this.activeDisplayFields,
}
const title = this.list.activeSavedViewTitle
this.savedViewService
.patch(savedView)
.pipe(first())
@@ -419,13 +420,13 @@ export class DocumentListComponent
this.activeSavedView = view
this.unmodifiedSavedView = view
this.toastService.showSuccess(
$localize`View "${this.list.activeSavedViewTitle}" saved successfully.`
$localize`View "${view.name ?? title}" saved successfully.`
)
this.unmodifiedFilterRules.set(this.list.filterRules)
},
error: (err) => {
this.toastService.showError(
$localize`Failed to save view "${this.list.activeSavedViewTitle}".`,
$localize`Failed to save view "${title}".`,
err
)
},