RED-10256 - Bulk-local: Changes should not be filtered + Remove for image-based redactions and hints
This commit is contained in:
parent
12d30af308
commit
fa7fd420a8
@ -33,6 +33,7 @@ import {
|
||||
LegalBasisOption,
|
||||
RectangleRedactOption,
|
||||
RectangleRedactOptions,
|
||||
RedactOrHintOptions,
|
||||
} from '../../utils/dialog-types';
|
||||
import { DetailsRadioComponent } from '@common-ui/inputs/details-radio/details-radio.component';
|
||||
import { DetailsRadioOption } from '@common-ui/inputs/details-radio/details-radio-option';
|
||||
@ -88,7 +89,7 @@ export class EditRedactionDialogComponent
|
||||
{ label: redaction.value, bold: true },
|
||||
{ label: redaction.typeLabel },
|
||||
]);
|
||||
options = this.allRectangles ? getRectangleRedactOptions('edit') : getEditRedactionOptions();
|
||||
options = this.allRectangles ? getRectangleRedactOptions('edit') : getEditRedactionOptions(this.isHint);
|
||||
legalOptions: LegalBasisOption[] = [];
|
||||
dictionaries: Dictionary[] = [];
|
||||
typeSelectOptions: TypeSelectOptions[] = [];
|
||||
@ -214,7 +215,7 @@ export class EditRedactionDialogComponent
|
||||
const initialReason: LegalBasisOption = this.initialFormValue.reason;
|
||||
const initialLegalBasis = initialReason?.legalBasis ?? '';
|
||||
const pageNumbers = parseSelectedPageNumbers(
|
||||
this.form.get('option').value.additionalInput?.value,
|
||||
this.form.get('option').value?.additionalInput?.value,
|
||||
this.data.file,
|
||||
this.data.annotations[0],
|
||||
);
|
||||
@ -226,7 +227,7 @@ export class EditRedactionDialogComponent
|
||||
comment: value.comment,
|
||||
type: value.type,
|
||||
value: this.allRectangles ? value.value : null,
|
||||
option: value.option.value,
|
||||
option: value.option?.value ?? RedactOrHintOptions.ONLY_HERE,
|
||||
position,
|
||||
pageNumbers,
|
||||
});
|
||||
|
||||
@ -588,8 +588,6 @@ export class AnnotationActionsService {
|
||||
return {
|
||||
value: redaction.value,
|
||||
rectangle: redaction.value === NON_READABLE_CONTENT,
|
||||
originTypes: [redaction.entry.type],
|
||||
originLegalBases: [redaction.legalBasis],
|
||||
pageNumbers: dialogResult.pageNumbers,
|
||||
position: dialogResult.position,
|
||||
comment: dialogResult.comment,
|
||||
|
||||
@ -30,7 +30,11 @@ const DOCUMENT_ICON = 'iqser:document';
|
||||
const FOLDER_ICON = 'red:folder';
|
||||
const REMOVE_FROM_DICT_ICON = 'red:remove-from-dict';
|
||||
|
||||
export const getEditRedactionOptions = (): DetailsRadioOption<EditRedactionOption>[] => {
|
||||
export const getEditRedactionOptions = (hint: boolean): DetailsRadioOption<EditRedactionOption>[] => {
|
||||
if (hint) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [
|
||||
{
|
||||
label: editRedactionTranslations.onlyHere.label,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user