Prevent confirmation warning after save

This commit is contained in:
Michael Shamoon
2021-01-25 23:06:25 -08:00
parent ee47d4f76f
commit dc8fc4d72b
2 changed files with 3 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ export class DocumentDetailComponent implements OnInit, DirtyComponent {
save() {
this.networkActive = true
this.store.next(this.documentForm.value)
this.documentsService.update(this.document).subscribe(result => {
this.close()
this.networkActive = false
@@ -182,6 +183,7 @@ export class DocumentDetailComponent implements OnInit, DirtyComponent {
saveEditNext() {
this.networkActive = true
this.store.next(this.documentForm.value)
this.documentsService.update(this.document).subscribe(result => {
this.error = null
this.documentListViewService.getNext(this.document.id).subscribe(nextDocId => {