Migrate from window.console to LogService

This commit is contained in:
Denys Vuika
2017-01-05 21:06:30 +00:00
parent 2d98a04f87
commit d42f41ec00
106 changed files with 1177 additions and 1171 deletions

View File

@@ -18,7 +18,7 @@
import { Component, ElementRef, Input, Output, HostListener, EventEmitter, Inject } from '@angular/core';
import { DOCUMENT } from '@angular/platform-browser';
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
import { AlfrescoApiService } from 'ng2-alfresco-core';
import { AlfrescoApiService, LogService } from 'ng2-alfresco-core';
@Component({
moduleId: module.id,
@@ -47,20 +47,16 @@ export class ViewerComponent {
showViewerChange: EventEmitter<boolean> = new EventEmitter<boolean>();
urlFileContent: string;
otherMenu: any;
displayName: string;
extension: string;
mimeType: string;
loaded: boolean = false;
constructor(private apiService: AlfrescoApiService,
private element: ElementRef,
@Inject(DOCUMENT) private document) {
@Inject(DOCUMENT) private document,
private logService: LogService) {
}
ngOnChanges(changes) {
@@ -87,7 +83,7 @@ export class ViewerComponent {
resolve();
}, function (error) {
reject(error);
console.log('This node does not exist');
this.logService.error('This node does not exist');
});
}
});