diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts index 8d9fbbe37..d14e6a5dc 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts @@ -24,8 +24,6 @@ export class ResizeRedactionDialogComponent redaction: AnnotationWrapper; form!: UntypedFormGroup; - #applyToAllDossiers: boolean; - readonly #dossier: Dossier; readonly #isRss = this._iqserPermissionsService.has(Roles.getRss); @@ -37,15 +35,8 @@ export class ResizeRedactionDialogComponent ) { super(); this.#dossier = _activeDossiersService.find(this.data.dossierId); - this.#applyToAllDossiers = this.data.applyToAllDossiers ?? true; this.redaction = this.data.redaction; - this.options = getResizeRedactionOptions( - this.redaction, - this.#dossier, - this.#isRss, - this.#applyToAllDossiers, - this.data.isApprover, - ); + this.options = getResizeRedactionOptions(this.redaction, this.#dossier, this.#isRss); this.form = this.#getForm(); } 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 adb5cc314..aad817655 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 @@ -227,14 +227,10 @@ export class AnnotationActionsService { const isImageText = annotation.isImage ? 'Image' : textAndPositions.text; const text = annotation.rectangle ? annotation.value : isImageText; - const isApprover = this._permissionsService.isApprover(dossier); - const dossierTemplate = this._dossierTemplatesService.find(this._state.dossierTemplateId); const data = { redaction: annotation, text, - applyToAllDossiers: isApprover && dossierTemplate.applyDictionaryUpdatesToAllDossiersByDefault, - isApprover, dossierId: dossier.dossierId, }; diff --git a/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts b/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts index 257e3f9b5..31d865ef2 100644 --- a/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts +++ b/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts @@ -69,8 +69,6 @@ export const getResizeRedactionOptions = ( redaction: AnnotationWrapper, dossier: Dossier, isRss: boolean, - applyToAllDossiers: boolean, - isApprover: boolean, ): DetailsRadioOption[] => { const translations = resizeRedactionTranslations; const options: DetailsRadioOption[] = [ @@ -91,11 +89,6 @@ export const getResizeRedactionOptions = ( tooltip: !dictBasedType ? translations.inDossier.tooltip : null, icon: FOLDER_ICON, value: RedactOrHintOptions.IN_DOSSIER, - extraOption: { - label: translations.inDossier.extraOptionLabel, - checked: applyToAllDossiers, - hidden: !isApprover, - }, }); } return options; diff --git a/apps/red-ui/src/app/modules/file-preview/utils/dialog-types.ts b/apps/red-ui/src/app/modules/file-preview/utils/dialog-types.ts index b4b6185a9..222cbd54a 100644 --- a/apps/red-ui/src/app/modules/file-preview/utils/dialog-types.ts +++ b/apps/red-ui/src/app/modules/file-preview/utils/dialog-types.ts @@ -25,23 +25,20 @@ export interface RedactTextResult { export type AddHintResult = RedactTextResult; export type AddAnnotationResult = RedactTextResult; -export interface ResizeAnnotationData { +export interface ResizeRedactionData { redaction: AnnotationWrapper; text: string; dossierId: string; } -export interface ResizeRedactionData extends ResizeAnnotationData { - applyToAllDossiers?: boolean; - isApprover?: boolean; -} +export type ResizeAnnotationData = ResizeRedactionData; -export interface ResizeAnnotationResult { +export interface ResizeRedactionResult { comment: string; updateDictionary: boolean; } -export type ResizeRedactionResult = ResizeAnnotationResult; +export type ResizeAnnotationResult = ResizeRedactionResult; export interface RemoveRedactionPermissions { canRemoveOnlyHere: boolean;