mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Fix: force set document not dirty before close after save (#8888)
This commit is contained in:
parent
13cfd6f904
commit
ca42762841
2 changed files with 34 additions and 32 deletions
|
|
@ -848,12 +848,14 @@ export class DocumentDetailComponent
|
|||
)
|
||||
.pipe(
|
||||
switchMap(({ nextDocId, updateResult }) => {
|
||||
if (nextDocId && updateResult)
|
||||
if (nextDocId && updateResult) {
|
||||
this.openDocumentService.setDirty(this.document, false)
|
||||
return this.openDocumentService
|
||||
.closeDocument(this.document)
|
||||
.pipe(
|
||||
map((closeResult) => ({ updateResult, nextDocId, closeResult }))
|
||||
)
|
||||
}
|
||||
})
|
||||
)
|
||||
.pipe(first())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue