remove console log (#2422)

This commit is contained in:
Eugenio Romano
2017-10-04 12:18:15 +01:00
committed by GitHub
parent eec87c12d3
commit 07c0c1c593
4 changed files with 2 additions and 10 deletions

View File

@@ -391,7 +391,6 @@ export class FormComponent implements OnInit, OnChanges {
form.outcomes = this.getFormDefinitionOutcomes(form); form.outcomes = this.getFormDefinitionOutcomes(form);
} }
if (this.fieldValidators && this.fieldValidators.length > 0) { if (this.fieldValidators && this.fieldValidators.length > 0) {
console.log('Applying custom field validators');
form.fieldValidators = this.fieldValidators; form.fieldValidators = this.fieldValidators;
} }
return form; return form;

View File

@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { Directive, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core'; import { Directive, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
import { ContentService } from 'ng2-alfresco-core'; import { ContentService } from 'ng2-alfresco-core';
import { TaskListService } from './../services/tasklist.service'; import { TaskListService } from './../services/tasklist.service';
@@ -29,7 +29,7 @@ const PDF_FORMAT: string = 'pdf';
'(click)': 'onClickAudit()' '(click)': 'onClickAudit()'
} }
}) })
export class TaskAuditDirective implements OnInit, OnChanges { export class TaskAuditDirective implements OnChanges {
@Input('task-id') @Input('task-id')
taskId: string; taskId: string;
@@ -60,9 +60,6 @@ export class TaskAuditDirective implements OnInit, OnChanges {
private taskListService: TaskListService) { private taskListService: TaskListService) {
} }
ngOnInit() {
console.log('OnInit');
}
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {
if (!this.isValidType()) { if (!this.isValidType()) {
this.setDefaultFormatType(); this.setDefaultFormatType();

View File

@@ -208,7 +208,6 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
} }
private clickTaskDetails(clickNotification: ClickNotification) { private clickTaskDetails(clickNotification: ClickNotification) {
console.log(clickNotification.target);
if (clickNotification.target.key === 'assignee') { if (clickNotification.target.key === 'assignee') {
this.showAssignee = true; this.showAssignee = true;
} }
@@ -346,7 +345,6 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
onCloseSearch() { onCloseSearch() {
this.showAssignee = false; this.showAssignee = false;
console.log(this.taskDetails.assignee);
} }
assignTaskToUser(selectedUser: User) { assignTaskToUser(selectedUser: User) {

View File

@@ -367,7 +367,6 @@ export class ViewerComponent implements OnDestroy, OnChanges {
}, },
error: (error) => { error: (error) => {
this.isLoading = false; this.isLoading = false;
console.log(error);
} }
}); });
} else { } else {
@@ -376,7 +375,6 @@ export class ViewerComponent implements OnDestroy, OnChanges {
}, },
(err) => { (err) => {
this.isLoading = false; this.isLoading = false;
console.log(err);
} }
); );
} }