Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
clear 'dirty' documents when closing all
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Feb 18, 2022
1 parent 66b9a99 commit c9baa76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src-ui/src/app/services/open-documents.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ 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>()
modal.componentInstance.confirmSubject = subject
return subject.asObservable()
} else {
this.openDocuments.splice(0, this.openDocuments.length)
this.dirtyDocuments.clear()
this.save()
return of(true)
}
Expand Down

0 comments on commit c9baa76

Please sign in to comment.