From bdd26e6c42f9e8d3087cb14e8c684af38eaa96d1 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 6 Oct 2017 12:21:47 +0100 Subject: [PATCH] [ADF-1676] hide fake content in the viewer (#2442) * hide fake content in the viewer * add missing property --- docs/viewer.component.md | 9 ++--- .../src/components/pdfViewer.component.html | 13 +++---- .../src/components/pdfViewer.component.ts | 3 ++ .../src/components/viewer.component.html | 34 ++++++++++--------- .../src/components/viewer.component.ts | 11 +++--- 5 files changed, 40 insertions(+), 30 deletions(-) diff --git a/docs/viewer.component.md b/docs/viewer.component.md index cc00cdbc41..62b072cd90 100644 --- a/docs/viewer.component.md +++ b/docs/viewer.component.md @@ -51,12 +51,13 @@ Using with file url: | showToolbar | boolean | true | Hide or show the toolbars | | displayName | string | | You can specify the name of the file | | allowGoBack | boolean | true | Allow `back` navigation | -| allowOpenWith | boolean | true | Toggle `Open With` options | +| allowOpenWith | boolean | false | Toggle `Open With` options | | allowDownload | boolean | true | Toggle download feature | -| allowPrint | boolean | true | Toggle printing feature | -| allowShare | boolean | true | Toggle sharing feature | -| allowInfoDrawer | boolean | true | Toogle info drawer feature | +| allowPrint | boolean | false | Toggle printing feature | +| allowShare | boolean | false | Toggle sharing feature | +| allowInfoDrawer | boolean |false | Toogle info drawer feature | | showInfoDrawer | boolean | false | Toggles info drawer visibility. Requires `allowInfoDrawer` to be set to `true`. | +| allowMoreActions | boolean | false | Toggles `More actions` feature | ## Details diff --git a/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html b/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html index dac6b7c8bf..0e019e9a23 100644 --- a/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html +++ b/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html @@ -8,14 +8,15 @@ -
+
- - - + + + + - - - - - - + + + + + + diff --git a/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts b/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts index 939d17ac8b..4c68969a30 100644 --- a/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts +++ b/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts @@ -54,23 +54,26 @@ export class ViewerComponent implements OnDestroy, OnChanges { allowGoBack = true; @Input() - allowOpenWith = true; + allowOpenWith = false; @Input() allowDownload = true; @Input() - allowPrint = true; + allowPrint = false; @Input() - allowShare = true; + allowShare = false; @Input() - allowInfoDrawer = true; + allowInfoDrawer = false; @Input() showInfoDrawer = false; + @Input() + allowMoreActions = false; + @Output() goBack = new EventEmitter>();