mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Fix: fix re-activation of save button when adding / removing array items (#8208)
This commit is contained in:
parent
64095a710a
commit
2f06680f76
1 changed files with 4 additions and 1 deletions
|
|
@ -710,7 +710,10 @@ export class DocumentDetailComponent
|
|||
next: (docValues) => {
|
||||
// in case data changed while saving eg removing inbox_tags
|
||||
this.documentForm.patchValue(docValues)
|
||||
this.store.next(this.documentForm.value)
|
||||
const newValues = Object.assign({}, this.documentForm.value)
|
||||
newValues.tags = [...docValues.tags]
|
||||
newValues.custom_fields = [...docValues.custom_fields]
|
||||
this.store.next(newValues)
|
||||
this.openDocumentService.setDirty(this.document, false)
|
||||
this.openDocumentService.save()
|
||||
this.toastService.showInfo($localize`Document saved successfully.`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue