diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/redact-text-dialog/redact-text-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/redact-text-dialog/redact-text-dialog.component.ts index 52197fac6..08268f8e1 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/redact-text-dialog/redact-text-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/redact-text-dialog/redact-text-dialog.component.ts @@ -145,7 +145,6 @@ export class RedactTextDialogComponent this.dialogRef.close({ redaction, dictionary: this.dictionaries.find(d => d.type === this.form.get('dictionary').value), - applyToAllDossiers: this.dictionaryRequest ? this.#applyToAllDossiers : null, }); } diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index 58b7d9ddb..f7450a28c 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -380,16 +380,6 @@ export class FilePreviewScreenComponent dictionaryLabel: result.dictionary?.label, }); - if ( - isApprover && - result.applyToAllDossiers !== null && - applyDictionaryUpdatesToAllDossiersByDefault !== result.applyToAllDossiers - ) { - const { ...body } = dossierTemplate; - body.applyDictionaryUpdatesToAllDossiersByDefault = result.applyToAllDossiers; - await this._dossierTemplatesService.createOrUpdate(body); - } - const addAndReload$ = add$.pipe( tap(() => this._documentViewer.clearSelection()), switchMap(() => this._filesService.reload(this.dossierId, file)), diff --git a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts index b4afed720..ee381b2cf 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts @@ -149,12 +149,6 @@ export class AnnotationActionsService { } else { this.#removeRedaction(redaction, result); } - - if (isApprover && result.option.extraOption) { - const { ...body } = dossierTemplate; - body.applyDictionaryUpdatesToAllDossiersByDefault = result.option.extraOption.checked; - await this._dossierTemplatesService.createOrUpdate(body); - } } }