Fix: force set document not dirty before close after save

This commit is contained in:
shamoon 2025-01-22 03:38:55 -08:00
parent 13cfd6f904
commit 0c37b908b7
No known key found for this signature in database

View File

@ -848,12 +848,14 @@ export class DocumentDetailComponent
) )
.pipe( .pipe(
switchMap(({ nextDocId, updateResult }) => { switchMap(({ nextDocId, updateResult }) => {
if (nextDocId && updateResult) if (nextDocId && updateResult) {
this.openDocumentService.setDirty(this.document, false)
return this.openDocumentService return this.openDocumentService
.closeDocument(this.document) .closeDocument(this.document)
.pipe( .pipe(
map((closeResult) => ({ updateResult, nextDocId, closeResult })) map((closeResult) => ({ updateResult, nextDocId, closeResult }))
) )
}
}) })
) )
.pipe(first()) .pipe(first())