fix fileId and projectId
This commit is contained in:
parent
8767c051b4
commit
8221c7cfbd
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectorRef, Component, HostListener, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
import { ChangeDetectorRef, Component, HostListener, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Event, NavigationEnd, Router } from '@angular/router';
|
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
|
||||||
import { AppStateService } from '../../../../state/app-state.service';
|
import { AppStateService } from '../../../../state/app-state.service';
|
||||||
import { WebViewerInstance } from '@pdftron/webviewer';
|
import { WebViewerInstance } from '@pdftron/webviewer';
|
||||||
import { PdfViewerComponent } from '../../components/pdf-viewer/pdf-viewer.component';
|
import { PdfViewerComponent } from '../../components/pdf-viewer/pdf-viewer.component';
|
||||||
@ -47,7 +47,6 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy {
|
|||||||
public analysisProgress: number;
|
public analysisProgress: number;
|
||||||
public analysisInterval: number;
|
public analysisInterval: number;
|
||||||
fileData: FileDataModel;
|
fileData: FileDataModel;
|
||||||
fileId: string;
|
|
||||||
annotationData: AnnotationData;
|
annotationData: AnnotationData;
|
||||||
selectedAnnotations: AnnotationWrapper[];
|
selectedAnnotations: AnnotationWrapper[];
|
||||||
viewReady = false;
|
viewReady = false;
|
||||||
@ -58,7 +57,6 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy {
|
|||||||
fileReanalysedSubscription: Subscription;
|
fileReanalysedSubscription: Subscription;
|
||||||
hideSkipped = false;
|
hideSkipped = false;
|
||||||
public viewDocumentInfo = false;
|
public viewDocumentInfo = false;
|
||||||
private projectId: string;
|
|
||||||
private _instance: WebViewerInstance;
|
private _instance: WebViewerInstance;
|
||||||
|
|
||||||
@ViewChild('fileWorkloadComponent') private _workloadComponent: FileWorkloadComponent;
|
@ViewChild('fileWorkloadComponent') private _workloadComponent: FileWorkloadComponent;
|
||||||
@ -119,6 +117,14 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy {
|
|||||||
); // on less than 3 seconds show indeterminate
|
); // on less than 3 seconds show indeterminate
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get projectId() {
|
||||||
|
return this.appStateService.activeProjectId;
|
||||||
|
}
|
||||||
|
|
||||||
|
get fileId() {
|
||||||
|
return this.appStateService.activeFileId;
|
||||||
|
}
|
||||||
|
|
||||||
updateViewMode() {
|
updateViewMode() {
|
||||||
const allAnnotations = this._instance.annotManager.getAnnotationsList();
|
const allAnnotations = this._instance.annotManager.getAnnotationsList();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user