Merge branch 'VM/RED-7634' into 'master'

RED-7634 - Hide "Skipped" button not working as expected

Closes RED-7634

See merge request redactmanager/red-ui!188
This commit is contained in:
Dan Percic 2023-11-15 13:32:34 +01:00
commit 0535356ee9

View File

@ -247,7 +247,10 @@ export class FilePreviewScreenComponent
.filter(a => !bool(a.getCustomData('changeLogRemoved')) && !this._annotationManager.isHidden(a.Id))
.filter(a => !ocrAnnotationIds.includes(a.Id));
const nonStandardEntries = annotations.filter(
a => bool(a.getCustomData('changeLogRemoved')) || this._annotationManager.isHidden(a.Id),
a =>
bool(a.getCustomData('changeLogRemoved')) ||
this._annotationManager.isHidden(a.Id) ||
(this._skippedService.hideSkipped() && bool(a.getCustomData('skipped'))),
);
this._readableRedactionsService.setAnnotationsColor(standardEntries, 'annotationColor');
this._readableRedactionsService.setAnnotationsOpacity(standardEntries, true);