Merge pull request #694 from Alfresco/dev-eromano-viewerPerformance

hide the documentlist during the show of a file
This commit is contained in:
Maurizio Vitale 2016-09-06 18:18:34 +01:00 committed by GitHub
commit 3d2e391b63
2 changed files with 192 additions and 189 deletions

View File

@ -1,3 +1,4 @@
<div *ngIf="!fileShowed">
<div class="container">
<alfresco-upload-drag-area
[showUploadDialog]="true"
@ -186,11 +187,14 @@
<div class="mdl-spinner mdl-js-spinner is-active"></div>
</alfresco-upload-button>
</div>
<file-uploading-dialog #fileDialog></file-uploading-dialog>
</div>
<div *ngIf="fileShowed">
<alfresco-viewer [(showViewer)]="fileShowed"
[fileNodeId]="fileNodeId"
[overlayMode]="true">
<div class="mdl-spinner mdl-js-spinner is-active"></div>
</alfresco-viewer>
</div>
<file-uploading-dialog #fileDialog></file-uploading-dialog>

View File

@ -39,7 +39,6 @@ export class PdfViewerComponent {
@Input()
showToolbar: boolean = true;
currentPdfDocument: any;
page: number;
displayPage: number;
@ -105,7 +104,7 @@ export class PdfViewerComponent {
initPDFViewer(pdfDocument: any) {
PDFJS.verbosity = 1;
PDFJS.disableWorker = true;
PDFJS.disableWorker = false;
let documentContainer = document.getElementById('viewer-pdf-container');
let viewer: any = document.getElementById('viewer-viewerPdf');