From c4c549fe1b6d871916498cfb85fd2c7147fd6d3f Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Sat, 10 Aug 2024 14:21:27 +0200 Subject: [PATCH] fix --- .../annotations-list.component.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts b/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts index a6827d447..7a30c67f4 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/annotations-list/annotations-list.component.ts @@ -1,4 +1,5 @@ -import { ChangeDetectorRef, Component, computed, ElementRef, EventEmitter, Input, Output } from '@angular/core'; +import { NgForOf, NgIf } from '@angular/common'; +import { Component, computed, ElementRef, EventEmitter, Input, Output } from '@angular/core'; import { getConfig, HasScrollbarDirective } from '@iqser/common-ui'; import { FilterService } from '@iqser/common-ui/lib/filtering'; import { IqserEventTarget } from '@iqser/common-ui/lib/utils'; @@ -11,10 +12,9 @@ import { AnnotationReferencesService } from '../../services/annotation-reference import { AnnotationsListingService } from '../../services/annotations-listing.service'; import { MultiSelectService } from '../../services/multi-select.service'; import { ViewModeService } from '../../services/view-mode.service'; -import { NgForOf, NgIf } from '@angular/common'; -import { HighlightsSeparatorComponent } from '../highlights-separator/highlights-separator.component'; -import { AnnotationWrapperComponent } from '../annotation-wrapper/annotation-wrapper.component'; import { AnnotationReferencesListComponent } from '../annotation-references-list/annotation-references-list.component'; +import { AnnotationWrapperComponent } from '../annotation-wrapper/annotation-wrapper.component'; +import { HighlightsSeparatorComponent } from '../highlights-separator/highlights-separator.component'; @Component({ selector: 'redaction-annotations-list', @@ -24,8 +24,6 @@ import { AnnotationReferencesListComponent } from '../annotation-references-list imports: [NgForOf, NgIf, HighlightsSeparatorComponent, AnnotationWrapperComponent, AnnotationReferencesListComponent], }) export class AnnotationsListComponent extends HasScrollbarDirective { - @Input({ required: true }) annotations: ListItem[]; - @Output() readonly pagesPanelActive = new EventEmitter(); readonly #earmarkGroups = computed(() => { if (this._viewModeService.isEarmarks()) { return this.#getEarmarksGroups(); @@ -33,10 +31,11 @@ export class AnnotationsListComponent extends HasScrollbarDirective { return [] as EarmarkGroup[]; }); protected readonly isDocumine = getConfig().IS_DOCUMINE; + @Input({ required: true }) annotations: ListItem[]; + @Output() readonly pagesPanelActive = new EventEmitter(); constructor( protected readonly _elementRef: ElementRef, - protected readonly _changeDetector: ChangeDetectorRef, private readonly _multiSelectService: MultiSelectService, private readonly _filterService: FilterService, private readonly _userPreferenceService: UserPreferenceService, @@ -45,7 +44,7 @@ export class AnnotationsListComponent extends HasScrollbarDirective { private readonly _listingService: AnnotationsListingService, readonly annotationReferencesService: AnnotationReferencesService, ) { - super(_elementRef, _changeDetector); + super(_elementRef); } annotationClicked(annotation: AnnotationWrapper, $event: MouseEvent): void {