diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts
index eeaa7c420..26fa7ca9c 100644
--- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts
+++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts
@@ -9,7 +9,6 @@ import {
EntityTypes,
EntryStates,
FalsePositiveSuperTypes,
- IComment,
IEntityLogEntry,
ILegalBasis,
IPoint,
@@ -31,7 +30,7 @@ export class AnnotationWrapper implements IListable {
type: string;
typeLabel?: string;
color: string;
- comments: IComment[] = [];
+ numberOfComments = 0;
firstTopLeftPoint: IPoint;
shortContent: string;
content: string;
@@ -233,9 +232,9 @@ export class AnnotationWrapper implements IListable {
annotationWrapper.isIgnored = logEntry.state === EntryStates.IGNORED;
+ annotationWrapper.numberOfComments = logEntry.numberOfComments;
annotationWrapper.imported = logEntry.imported;
annotationWrapper.legalBasisValue = logEntry.legalBasis;
- annotationWrapper.comments = []; //logEntry.comments || [];
annotationWrapper.manual = logEntry.manualChanges?.length > 0;
annotationWrapper.engines = logEntry.engines ?? [];
annotationWrapper.section = logEntry.section;
diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html
index 7800d1036..498cb36c9 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html
+++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html
@@ -10,26 +10,35 @@
diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss
index 6817bb6ea..36304a969 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss
+++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss
@@ -67,3 +67,9 @@
}
}
}
+
+.hide-comments {
+ margin-top: 5px;
+ margin-bottom: 8px;
+ padding-left: 26px;
+}
diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts
index 3307c7b6d..3b2c9775c 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts
+++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts
@@ -13,12 +13,13 @@ import { ActionsHelpModeKeys } from '../../utils/constants';
})
export class AnnotationWrapperComponent implements OnChanges {
readonly #isDocumine = getConfig().IS_DOCUMINE;
- protected readonly _pdfProxyService = inject(PdfProxyService);
- protected readonly _multiSelectService = inject(MultiSelectService);
+ protected readonly pdfProxyService = inject(PdfProxyService);
+ protected readonly multiSelectService = inject(MultiSelectService);
@Input({ required: true }) annotation!: ListItem;
@HostBinding('attr.annotation-id') annotationId: string;
@HostBinding('class.active') active = false;
actionsHelpModeKey?: string;
+ showComments = false;
ngOnChanges() {
this.annotationId = this.annotation.item.id;
diff --git a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html
index 3b7c4a0a2..833094349 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html
+++ b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html
@@ -1,39 +1,30 @@
-
-