mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Fix doc detail button reset on error
This commit is contained in:
parent
d7068ca42b
commit
2fd217ef1f
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue