RED-10423: fixed multiple pages rectangle remove action.

This commit is contained in:
Nicoleta Panaghiu 2024-11-07 13:19:03 +02:00
parent a8941e2602
commit c7f7ba28b6

View File

@ -7,11 +7,9 @@ import { AnnotationWrapper } from '@models/file/annotation.wrapper';
import { Core } from '@pdftron/webviewer';
import {
DictionaryEntryTypes,
DownloadFileTypes,
EarmarkOperation,
type IBulkLocalRemoveRequest,
IBulkRecategorizationRequest,
ILegalBasisChangeRequest,
IRecategorizationRequest,
IRectangle,
type IRemoveRedactionRequest,
@ -51,7 +49,6 @@ import { FilePreviewDialogService } from './file-preview-dialog.service';
import { FilePreviewStateService } from './file-preview-state.service';
import { ManualRedactionService } from './manual-redaction.service';
import { SkippedService } from './skipped.service';
import { NON_READABLE_CONTENT } from '../dialogs/rectangle-annotation-dialog/rectangle-annotation-dialog.component';
import { ForceAnnotationDialogComponent } from '../dialogs/force-redaction-dialog/force-annotation-dialog.component';
@Injectable()
@ -587,7 +584,7 @@ export class AnnotationActionsService {
const redaction = redactions[0];
return {
value: redaction.value,
rectangle: redaction.value === NON_READABLE_CONTENT,
rectangle: redaction.AREA,
pageNumbers: dialogResult.pageNumbers,
position: dialogResult.position,
comment: dialogResult.comment,