[ADF-863] codelyzer documentlist (#2059)

* codelyzer documentlist

* tslint error after codelizer

* fix import

* fix tag test
This commit is contained in:
Eugenio Romano
2017-07-08 13:50:06 +02:00
parent 12d2224129
commit 58eb56a966
72 changed files with 504 additions and 240 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, HostListener, Input } from '@angular/core';
import { Component, HostListener, Input, OnChanges } from '@angular/core';
import { LogService } from 'ng2-alfresco-core';
import { RenderingQueueServices } from '../services/rendering-queue.services';
@@ -27,7 +27,7 @@ declare let PDFJS: any;
styleUrls: ['./pdfViewer.component.css', './pdfViewerHost.component.css'],
providers: [RenderingQueueServices]
})
export class PdfViewerComponent {
export class PdfViewerComponent implements OnChanges {
@Input()
urlFile: string;
@@ -97,11 +97,11 @@ export class PdfViewerComponent {
this.currentPdfDocument.getPage(1).then(() => {
this.scalePage('auto');
resolve();
}, (error) => {
}, (error) => {
reject(error);
});
}, (error) => {
}, (error) => {
reject(error);
});
}
@@ -124,7 +124,7 @@ export class PdfViewerComponent {
window.document.addEventListener('scroll', (event) => {
this.watchScroll(event.target);
}, true);
}, true);
this.pdfViewer = new PDFJS.PDFViewer({
container: documentContainer,