mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
remove console log (#2422)
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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();
|
||||||
|
@@ -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) {
|
||||||
|
@@ -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);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user