Clean header

This commit is contained in:
Adina Țeudan 2020-10-05 23:30:12 +03:00 committed by Timo Bejan
parent f340b487de
commit e8c347251b

View File

@ -70,6 +70,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy {
this.wvInstance = instance;
this._viewerSyncService.registerViewer(this.fileType, this.wvInstance);
this._configureTextPopup();
this._configureHeader();
instance.docViewer.on('documentLoaded', this.wvDocumentLoadedHandler)
instance.loadDocument(pdfBlob, {filename: this.fileStatus ? this.fileStatus.filename : 'file.pdf'});
this.fileReady.emit();
@ -112,6 +113,11 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy {
});
}
private _configureHeader() {
this.wvInstance.disableElements(['ribbons']);
this.wvInstance.setToolbarGroup('toolbarGroup-View');
}
ngOnDestroy(): void {
this._viewerSyncService.deregisterInstance(this.fileType);
}