From 79149ea45f2caf117fd0efdba76f78d5b173b507 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Wed, 13 Nov 2024 17:32:57 +0200 Subject: [PATCH] RED-9417 - updated the display condition for excluded page indicator --- .../components/file-workload/file-workload.component.html | 6 +----- .../file-preview/components/pages/pages.component.ts | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html index ab5ab8c6b..ae6c78618 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html @@ -86,11 +86,7 @@ - +
; - @Input({ required: true }) displayedAnnotations: Map; readonly viewedPages$ = inject(ViewedPagesMapService).get$(this.#state.fileId); ngAfterViewInit() { @@ -50,8 +48,7 @@ export class PagesComponent implements AfterViewInit { } hasOnlyManualRedactionsAndIsExcluded(pageNumber: number): boolean { - const hasOnlyManualRedactions = this.displayedAnnotations.get(pageNumber)?.every(annotation => annotation.manual); - return hasOnlyManualRedactions && this.#state.file().excludedPages.includes(pageNumber); + return this.#state.file().excludedPages.includes(pageNumber); } getViewedPage(viewedPages: ViewedPage[], pageNumber: number) {