From 7ea1c0e6f22577b091f9e9da826332c51d5e5bd3 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Tue, 6 Sep 2016 17:28:39 +0200 Subject: [PATCH] hide the documentlist during the show of a file --- .../app/components/files/files.component.html | 378 +++++++++--------- .../src/componets/pdfViewer.component.ts | 3 +- 2 files changed, 192 insertions(+), 189 deletions(-) diff --git a/demo-shell-ng2/app/components/files/files.component.html b/demo-shell-ng2/app/components/files/files.component.html index d7e4dc935f..0fc290de5f 100644 --- a/demo-shell-ng2/app/components/files/files.component.html +++ b/demo-shell-ng2/app/components/files/files.component.html @@ -1,196 +1,200 @@ -
- - - - +
+ - - - - - + [uploaddirectory]="" + [versioning] = "versioning" + (onSuccess)="documentList.reload()"> + + + - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
    +
  • Current path: {{documentList.currentFolderPath}}
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+ + +

+ +

+ + +

+ +

+ +

+ +

+ +

+ +

+ +
Upload
+
+
+ +
+
+
+ +
+
+
+
+ +
+
+
+
- - -
- -
- - -

- -

- - -

- -

- -

- -

- -

- -

- -
Upload
-
-
- -
-
-
- +
+
- -
-
- -
-
+
- -
-
- - diff --git a/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts b/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts index c9750c7231..7d9e190ead 100644 --- a/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts +++ b/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts @@ -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');