From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Mar 2023 20:47:35 +0000 (-0700) Subject: Fix doc detail button reset on error X-Git-Tag: v1.14.0-beta.rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fd217ef1f12ab9f61ef3e1d9169dda40db31cc6;p=thirdparty%2Fpaperless-ngx.git Fix doc detail button reset on error --- diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index 3cd4c9a17e..828f19c5f0 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -192,8 +192,8 @@   -   -   +   +   diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index bb22c49ab3..9c5efe8f62 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -462,12 +462,13 @@ export class DocumentDetailComponent save() { this.networkActive = true - this.store.next(this.documentForm.value) this.documentsService .update(this.document) .pipe(first()) .subscribe({ next: () => { + this.store.next(this.documentForm.value) + this.toastService.showInfo($localize`Document saved successfully.`) this.close() this.networkActive = false this.error = null