mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-21 10:29:29 -05:00
Fix: force set document not dirty before close after save
This commit is contained in:
parent
13cfd6f904
commit
0c37b908b7
@ -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…
x
Reference in New Issue
Block a user