From 5e0c8f6c135853feb16a0c066219be1dfaa4fc33 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Fri, 26 Jan 2024 15:44:22 +0200 Subject: [PATCH] RED-8375: fixed manual redactions actions not available for excluded. --- .../file-preview-screen.component.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index 68f6444cd..7ee73e2d7 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -75,12 +75,10 @@ import { SkippedService } from './services/skipped.service'; import { StampService } from './services/stamp.service'; import { TablesService } from './services/tables.service'; import { ViewModeService } from './services/view-mode.service'; -import { ALL_HOTKEYS, TextPopups } from './utils/constants'; +import { ALL_HOTKEYS } from './utils/constants'; import { RedactTextData } from './utils/dialog-types'; import { AnnotationActionsService } from './services/annotation-actions.service'; -const textActions = [TextPopups.REDACT_TEXT, TextPopups.ADD_HINT, TextPopups.ADD_FALSE_POSITIVE]; - @Component({ templateUrl: './file-preview-screen.component.html', styleUrls: ['./file-preview-screen.component.scss'], @@ -767,20 +765,6 @@ export class FilePreviewScreenComponent ), ) .subscribe(); - - const selectedTextEffect = this._documentViewer.selectedText$.pipe( - tap(() => { - const canPerformActions = this.pdfProxyService.canPerformActions(); - const isCurrentPageExcluded = this.state.file().isPageExcluded(this.pdf.currentPage()); - - if (canPerformActions && !isCurrentPageExcluded) { - this.pdf.enable(textActions); - } else { - this.pdf.disable(textActions); - } - }), - ); - this.addActiveScreenSubscription = selectedTextEffect.subscribe(); } #handleDeletedDossier(): void {