mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Prevent confirmation warning after save
This commit is contained in:
parent
8080b7a119
commit
bc02dc30b1
2 changed files with 3 additions and 0 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue