Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

clear 'dirty' documents when closing all

Michael Shamoonc9baa76afdcc
diff --git a/src-ui/src/app/services/open-documents.service.ts b/src-ui/src/app/services/open-documents.service.ts
index c44f4cd75..92802c765 100644
--- a/src-ui/src/app/services/open-documents.service.ts
+++ b/src-ui/src/app/services/open-documents.service.ts
@@ -102,6 +102,7 @@ export class OpenDocumentsService {
modal.componentInstance.buttonsEnabled = false
modal.close()
this.openDocuments.splice(0, this.openDocuments.length)
+ this.dirtyDocuments.clear()
this.save()
})
const subject = new Subject<boolean>()
@@ -109,6 +110,7 @@ export class OpenDocumentsService {
return subject.asObservable()
} else {
this.openDocuments.splice(0, this.openDocuments.length)
+ this.dirtyDocuments.clear()
this.save()
return of(true)
}