mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Fix doc detail button reset on error
This commit is contained in:
@@ -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