From bda741244974a27951e535dcb5c8918e7d1b7698 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Mon, 17 Jul 2023 20:22:09 +0300 Subject: [PATCH] RED-6774 - remove dossier template request --- .../redact-text-dialog/redact-text-dialog.component.ts | 1 - .../file-preview/file-preview-screen.component.ts | 10 ---------- .../services/annotation-actions.service.ts | 6 ------ 3 files changed, 17 deletions(-) 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); - } } }