[ADF-1724] Remove all log in favor of log service (#2465)

* remove console log from components

* remove console log from demo shell

* fix visibility issue

* fix error template

* remove console.log from spec

* fix tests

* fix test
This commit is contained in:
Eugenio Romano
2017-10-12 23:14:28 +01:00
committed by GitHub
parent 10bc4b3043
commit a46cf4be64
30 changed files with 138 additions and 259 deletions

View File

@@ -17,6 +17,7 @@
import { Component, Inject, OnInit } from '@angular/core';
import { FormModel, FormService } from 'ng2-activiti-form';
import { LogService } from 'ng2-alfresco-core';
import { InMemoryFormService } from '../../services/in-memory-form.service';
import { DemoForm } from './demo-form';
@@ -32,11 +33,11 @@ export class FormDemoComponent implements OnInit {
form: FormModel;
constructor(@Inject(FormService) private formService: InMemoryFormService) {
constructor(@Inject(FormService) private formService: InMemoryFormService, private logSevice: LogService) {
// Prevent default outcome actions
formService.executeOutcome.subscribe(e => {
e.preventDefault();
console.log(e.outcome);
this.logSevice.log(e.outcome);
});
}