]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
fix edit dialog creation d/t success emitter was renamed 2273/head
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 30 Dec 2022 15:33:45 +0000 (07:33 -0800)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 30 Dec 2022 15:33:45 +0000 (07:33 -0800)
src-ui/src/app/components/common/input/tags/tags.component.ts
src-ui/src/app/components/document-detail/document-detail.component.ts
src-ui/src/app/components/manage/management-list/management-list.component.ts
src-ui/src/app/components/manage/settings/settings.component.ts

index b6cd1413d0b446a9ee3734bd5acfb6a69eb7f378..0a4ed6fb26f715947a77952879ed708be0147ce7 100644 (file)
@@ -91,7 +91,7 @@ export class TagsComponent implements OnInit, ControlValueAccessor {
     if (name) modal.componentInstance.object = { name: name }
     else if (this._lastSearchTerm)
       modal.componentInstance.object = { name: this._lastSearchTerm }
-    modal.componentInstance.success.subscribe((newTag) => {
+    modal.componentInstance.succeeded.subscribe((newTag) => {
       this.tagService.listAll().subscribe((tags) => {
         this.tags = tags.results
         this.value = [...this.value, newTag.id]
index 557a0929f278b4455e12881bdf55cf349276ed31..08d0b0e82cc21a0e0a1cdf4b67c0bb7f2fb76fa1 100644 (file)
@@ -284,7 +284,7 @@ export class DocumentDetailComponent
     })
     modal.componentInstance.dialogMode = 'create'
     if (newName) modal.componentInstance.object = { name: newName }
-    modal.componentInstance.success
+    modal.componentInstance.succeeded
       .pipe(
         switchMap((newDocumentType) => {
           return this.documentTypeService
@@ -305,7 +305,7 @@ export class DocumentDetailComponent
     })
     modal.componentInstance.dialogMode = 'create'
     if (newName) modal.componentInstance.object = { name: newName }
-    modal.componentInstance.success
+    modal.componentInstance.succeeded
       .pipe(
         switchMap((newCorrespondent) => {
           return this.correspondentService
@@ -328,7 +328,7 @@ export class DocumentDetailComponent
     })
     modal.componentInstance.dialogMode = 'create'
     if (newName) modal.componentInstance.object = { name: newName }
-    modal.componentInstance.success
+    modal.componentInstance.succeeded
       .pipe(
         switchMap((newStoragePath) => {
           return this.storagePathService
index d0864d6f5a26fbb12b09b05a7fe30be319bd4b98..f55538daf3706864271ec68f823eef68c528d819 100644 (file)
@@ -120,7 +120,7 @@ export abstract class ManagementListComponent<T extends ObjectWithId>
       backdrop: 'static',
     })
     activeModal.componentInstance.dialogMode = 'create'
-    activeModal.componentInstance.success.subscribe({
+    activeModal.componentInstance.succeeded.subscribe({
       next: () => {
         this.reloadData()
         this.toastService.showInfo(
@@ -143,7 +143,7 @@ export abstract class ManagementListComponent<T extends ObjectWithId>
     })
     activeModal.componentInstance.object = object
     activeModal.componentInstance.dialogMode = 'edit'
-    activeModal.componentInstance.success.subscribe({
+    activeModal.componentInstance.succeeded.subscribe({
       next: () => {
         this.reloadData()
         this.toastService.showInfo(
index c1be849bd3133e49c192e51698207a07104f9f05..21b066fbbd91dac1a7deb8e54d262f4b36155260 100644 (file)
@@ -546,7 +546,7 @@ export class SettingsComponent
     })
     modal.componentInstance.dialogMode = account ? 'edit' : 'create'
     modal.componentInstance.object = account
-    modal.componentInstance.success
+    modal.componentInstance.succeeded
       .pipe(takeUntil(this.unsubscribeNotifier))
       .subscribe({
         next: (newMailAccount) => {
@@ -604,7 +604,7 @@ export class SettingsComponent
     })
     modal.componentInstance.dialogMode = rule ? 'edit' : 'create'
     modal.componentInstance.object = rule
-    modal.componentInstance.success
+    modal.componentInstance.succeeded
       .pipe(takeUntil(this.unsubscribeNotifier))
       .subscribe({
         next: (newMailRule) => {