mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-19 22:38:13 +00:00
Fix doc detail button reset on error
This commit is contained in:
1 parent
d7068ca42b
commit
2fd217ef1f
2 files changed
+4
-3
No files matched your search
@@ -462,12 +462,13 @@ export class DocumentDetailComponent
|
||||
|
||||
save() {
|
||||
this.networkActive = true
|
||||
this.store.next(this.documentForm.value)
|
||||
this.documentsService
|
||||
.update(this.document)
|
||||
.pipe(first())
|
||||
.subscribe({
|
||||
next: () => {
|
||||
this.store.next(this.documentForm.value)
|
||||
this.toastService.showInfo($localize`Document saved successfully.`)
|
||||
this.close()
|
||||
this.networkActive = false
|
||||
this.error = null
|
||||
|
||||
Reference in new issue
Block a user