Remove logic from getter
This commit is contained in:
parent
4211d18a7a
commit
f26c1e67ad
@ -83,7 +83,7 @@
|
||||
cursor: pointer;
|
||||
transition: background-color 0.25s;
|
||||
|
||||
&:hover {
|
||||
&:not(.disabled):hover {
|
||||
background-color: $grey-6;
|
||||
}
|
||||
|
||||
|
||||
@ -29,7 +29,6 @@ import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { FileManagementControllerService, StatusControllerService } from '@redaction/red-ui-http';
|
||||
import { PdfViewerDataService } from '../service/pdf-viewer-data.service';
|
||||
import { download } from '../../../utils/file-download-utils';
|
||||
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
||||
import { ViewMode } from '../model/view-mode';
|
||||
|
||||
const COMMAND_KEY_ARRAY = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Escape'];
|
||||
@ -81,10 +80,6 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy {
|
||||
return this._instance;
|
||||
}
|
||||
|
||||
get displayedPages(): number[] {
|
||||
return Object.keys(this.displayedAnnotations).map((key) => Number(key));
|
||||
}
|
||||
|
||||
get activeViewerPage() {
|
||||
return this._instance?.docViewer?.getCurrentPage();
|
||||
}
|
||||
@ -120,7 +115,9 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy {
|
||||
public analysisInterval: number;
|
||||
|
||||
public quickScrollFirstEnabled = false;
|
||||
public quickScrollLastEnabled = true;
|
||||
public quickScrollLastEnabled = false;
|
||||
|
||||
public displayedPages: number[] = [];
|
||||
|
||||
get indeterminateMode() {
|
||||
return (
|
||||
@ -599,6 +596,7 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy {
|
||||
|
||||
filtersChanged(filters: FilterModel[]) {
|
||||
this.displayedAnnotations = this._annotationProcessingService.filterAndGroupAnnotations(this.annotations, filters);
|
||||
this.displayedPages = Object.keys(this.displayedAnnotations).map((key) => Number(key));
|
||||
this._changeDetectorRef.markForCheck();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user