mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
clear 'dirty' documents when closing all
This commit is contained in:
parent
66b9a99e71
commit
c9baa76afd
@ -102,6 +102,7 @@ export class OpenDocumentsService {
|
|||||||
modal.componentInstance.buttonsEnabled = false
|
modal.componentInstance.buttonsEnabled = false
|
||||||
modal.close()
|
modal.close()
|
||||||
this.openDocuments.splice(0, this.openDocuments.length)
|
this.openDocuments.splice(0, this.openDocuments.length)
|
||||||
|
this.dirtyDocuments.clear()
|
||||||
this.save()
|
this.save()
|
||||||
})
|
})
|
||||||
const subject = new Subject<boolean>()
|
const subject = new Subject<boolean>()
|
||||||
@ -109,6 +110,7 @@ export class OpenDocumentsService {
|
|||||||
return subject.asObservable()
|
return subject.asObservable()
|
||||||
} else {
|
} else {
|
||||||
this.openDocuments.splice(0, this.openDocuments.length)
|
this.openDocuments.splice(0, this.openDocuments.length)
|
||||||
|
this.dirtyDocuments.clear()
|
||||||
this.save()
|
this.save()
|
||||||
return of(true)
|
return of(true)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user