mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Merge pull request #694 from Alfresco/dev-eromano-viewerPerformance
hide the documentlist during the show of a file
This commit is contained in:
commit
3d2e391b63
@ -1,3 +1,4 @@
|
|||||||
|
<div *ngIf="!fileShowed">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<alfresco-upload-drag-area
|
<alfresco-upload-drag-area
|
||||||
[showUploadDialog]="true"
|
[showUploadDialog]="true"
|
||||||
@ -186,11 +187,14 @@
|
|||||||
<div class="mdl-spinner mdl-js-spinner is-active"></div>
|
<div class="mdl-spinner mdl-js-spinner is-active"></div>
|
||||||
</alfresco-upload-button>
|
</alfresco-upload-button>
|
||||||
</div>
|
</div>
|
||||||
|
<file-uploading-dialog #fileDialog></file-uploading-dialog>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="fileShowed">
|
||||||
<alfresco-viewer [(showViewer)]="fileShowed"
|
<alfresco-viewer [(showViewer)]="fileShowed"
|
||||||
[fileNodeId]="fileNodeId"
|
[fileNodeId]="fileNodeId"
|
||||||
[overlayMode]="true">
|
[overlayMode]="true">
|
||||||
<div class="mdl-spinner mdl-js-spinner is-active"></div>
|
<div class="mdl-spinner mdl-js-spinner is-active"></div>
|
||||||
</alfresco-viewer>
|
</alfresco-viewer>
|
||||||
|
</div>
|
||||||
|
|
||||||
<file-uploading-dialog #fileDialog></file-uploading-dialog>
|
|
||||||
|
@ -39,7 +39,6 @@ export class PdfViewerComponent {
|
|||||||
@Input()
|
@Input()
|
||||||
showToolbar: boolean = true;
|
showToolbar: boolean = true;
|
||||||
|
|
||||||
|
|
||||||
currentPdfDocument: any;
|
currentPdfDocument: any;
|
||||||
page: number;
|
page: number;
|
||||||
displayPage: number;
|
displayPage: number;
|
||||||
@ -105,7 +104,7 @@ export class PdfViewerComponent {
|
|||||||
|
|
||||||
initPDFViewer(pdfDocument: any) {
|
initPDFViewer(pdfDocument: any) {
|
||||||
PDFJS.verbosity = 1;
|
PDFJS.verbosity = 1;
|
||||||
PDFJS.disableWorker = true;
|
PDFJS.disableWorker = false;
|
||||||
|
|
||||||
let documentContainer = document.getElementById('viewer-pdf-container');
|
let documentContainer = document.getElementById('viewer-pdf-container');
|
||||||
let viewer: any = document.getElementById('viewer-viewerPdf');
|
let viewer: any = document.getElementById('viewer-viewerPdf');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user