RED-6774 - remove dossier template request
This commit is contained in:
parent
37ee771a1e
commit
bda7412449
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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)),
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user