mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-03 13:35:37 +00:00
Fix: prevent loss of save view name on save + close (#14667)
This commit is contained in:
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
|
||||
)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user