mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
Merge pull request #2273 from paperless-ngx/fix-2267
This commit is contained in:
commit
58532eeb69
@ -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]
|
||||||
|
@ -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
|
||||||
|
@ -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(
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user