mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1676] hide fake content in the viewer (#2442)
* hide fake content in the viewer * add missing property
This commit is contained in:
committed by
Eugenio Romano
parent
e903168320
commit
bdd26e6c42
@@ -8,14 +8,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="adf-pdf-viewer__toolbar">
|
||||
<div class="adf-pdf-viewer__toolbar" *ngIf="showToolbar">
|
||||
<adf-toolbar>
|
||||
|
||||
<button md-icon-button>
|
||||
<md-icon>dashboard</md-icon>
|
||||
</button>
|
||||
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
<ng-container *ngIf="allowThumbnails">
|
||||
<button md-icon-button>
|
||||
<md-icon>dashboard</md-icon>
|
||||
</button>
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
</ng-container>
|
||||
|
||||
<button
|
||||
id="viewer-previous-page-button"
|
||||
|
@@ -46,6 +46,9 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
||||
@Input()
|
||||
showToolbar: boolean = true;
|
||||
|
||||
@Input()
|
||||
allowThumbnails = false;
|
||||
|
||||
currentPdfDocument: any;
|
||||
page: number;
|
||||
displayPage: number;
|
||||
|
@@ -54,23 +54,25 @@
|
||||
<md-icon>share</md-icon>
|
||||
</button>
|
||||
|
||||
<button md-icon-button [mdMenuTriggerFor]="mnuMoreActions" mdTooltip="More actions">
|
||||
<md-icon>more_vert</md-icon>
|
||||
</button>
|
||||
<md-menu #mnuMoreActions="mdMenu">
|
||||
<button md-menu-item>
|
||||
<md-icon>dialpad</md-icon>
|
||||
<span>Action One</span>
|
||||
<ng-container *ngIf="allowMoreActions">
|
||||
<button md-icon-button [mdMenuTriggerFor]="mnuMoreActions" mdTooltip="More actions">
|
||||
<md-icon>more_vert</md-icon>
|
||||
</button>
|
||||
<button md-menu-item disabled>
|
||||
<md-icon>voicemail</md-icon>
|
||||
<span>Action Two</span>
|
||||
</button>
|
||||
<button md-menu-item>
|
||||
<md-icon>notifications_off</md-icon>
|
||||
<span>Action Three</span>
|
||||
</button>
|
||||
</md-menu>
|
||||
<md-menu #mnuMoreActions="mdMenu">
|
||||
<button md-menu-item>
|
||||
<md-icon>dialpad</md-icon>
|
||||
<span>Action One</span>
|
||||
</button>
|
||||
<button md-menu-item disabled>
|
||||
<md-icon>voicemail</md-icon>
|
||||
<span>Action Two</span>
|
||||
</button>
|
||||
<button md-menu-item>
|
||||
<md-icon>notifications_off</md-icon>
|
||||
<span>Action Three</span>
|
||||
</button>
|
||||
</md-menu>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="allowInfoDrawer">
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
|
@@ -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<BaseEvent<any>>();
|
||||
|
||||
|
Reference in New Issue
Block a user