fix edit dialog creation d/t success emitter was renamed

This commit is contained in:
Michael Shamoon 2022-12-30 07:33:45 -08:00
parent f4e5023d22
commit 2bc208cd6e
4 changed files with 8 additions and 8 deletions

View File

@ -91,7 +91,7 @@ export class TagsComponent implements OnInit, ControlValueAccessor {
if (name) modal.componentInstance.object = { name: name } if (name) modal.componentInstance.object = { name: name }
else if (this._lastSearchTerm) else if (this._lastSearchTerm)
modal.componentInstance.object = { name: this._lastSearchTerm } modal.componentInstance.object = { name: this._lastSearchTerm }
modal.componentInstance.success.subscribe((newTag) => { modal.componentInstance.succeeded.subscribe((newTag) => {
this.tagService.listAll().subscribe((tags) => { this.tagService.listAll().subscribe((tags) => {
this.tags = tags.results this.tags = tags.results
this.value = [...this.value, newTag.id] this.value = [...this.value, newTag.id]

View File

@ -284,7 +284,7 @@ export class DocumentDetailComponent
}) })
modal.componentInstance.dialogMode = 'create' modal.componentInstance.dialogMode = 'create'
if (newName) modal.componentInstance.object = { name: newName } if (newName) modal.componentInstance.object = { name: newName }
modal.componentInstance.success modal.componentInstance.succeeded
.pipe( .pipe(
switchMap((newDocumentType) => { switchMap((newDocumentType) => {
return this.documentTypeService return this.documentTypeService
@ -305,7 +305,7 @@ export class DocumentDetailComponent
}) })
modal.componentInstance.dialogMode = 'create' modal.componentInstance.dialogMode = 'create'
if (newName) modal.componentInstance.object = { name: newName } if (newName) modal.componentInstance.object = { name: newName }
modal.componentInstance.success modal.componentInstance.succeeded
.pipe( .pipe(
switchMap((newCorrespondent) => { switchMap((newCorrespondent) => {
return this.correspondentService return this.correspondentService
@ -328,7 +328,7 @@ export class DocumentDetailComponent
}) })
modal.componentInstance.dialogMode = 'create' modal.componentInstance.dialogMode = 'create'
if (newName) modal.componentInstance.object = { name: newName } if (newName) modal.componentInstance.object = { name: newName }
modal.componentInstance.success modal.componentInstance.succeeded
.pipe( .pipe(
switchMap((newStoragePath) => { switchMap((newStoragePath) => {
return this.storagePathService return this.storagePathService

View File

@ -120,7 +120,7 @@ export abstract class ManagementListComponent<T extends ObjectWithId>
backdrop: 'static', backdrop: 'static',
}) })
activeModal.componentInstance.dialogMode = 'create' activeModal.componentInstance.dialogMode = 'create'
activeModal.componentInstance.success.subscribe({ activeModal.componentInstance.succeeded.subscribe({
next: () => { next: () => {
this.reloadData() this.reloadData()
this.toastService.showInfo( this.toastService.showInfo(
@ -143,7 +143,7 @@ export abstract class ManagementListComponent<T extends ObjectWithId>
}) })
activeModal.componentInstance.object = object activeModal.componentInstance.object = object
activeModal.componentInstance.dialogMode = 'edit' activeModal.componentInstance.dialogMode = 'edit'
activeModal.componentInstance.success.subscribe({ activeModal.componentInstance.succeeded.subscribe({
next: () => { next: () => {
this.reloadData() this.reloadData()
this.toastService.showInfo( this.toastService.showInfo(

View File

@ -546,7 +546,7 @@ export class SettingsComponent
}) })
modal.componentInstance.dialogMode = account ? 'edit' : 'create' modal.componentInstance.dialogMode = account ? 'edit' : 'create'
modal.componentInstance.object = account modal.componentInstance.object = account
modal.componentInstance.success modal.componentInstance.succeeded
.pipe(takeUntil(this.unsubscribeNotifier)) .pipe(takeUntil(this.unsubscribeNotifier))
.subscribe({ .subscribe({
next: (newMailAccount) => { next: (newMailAccount) => {
@ -604,7 +604,7 @@ export class SettingsComponent
}) })
modal.componentInstance.dialogMode = rule ? 'edit' : 'create' modal.componentInstance.dialogMode = rule ? 'edit' : 'create'
modal.componentInstance.object = rule modal.componentInstance.object = rule
modal.componentInstance.success modal.componentInstance.succeeded
.pipe(takeUntil(this.unsubscribeNotifier)) .pipe(takeUntil(this.unsubscribeNotifier))
.subscribe({ .subscribe({
next: (newMailRule) => { next: (newMailRule) => {