mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user