RED-6774 - remove dossier template request

This commit is contained in:
Valentin Mihai 2023-07-17 20:22:09 +03:00
parent 37ee771a1e
commit bda7412449
3 changed files with 0 additions and 17 deletions

View File

@ -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,
});
}

View File

@ -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)),

View File

@ -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);
}
}
}