mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
tslint arrow-parens rule (#4003)
This commit is contained in:
@@ -123,7 +123,7 @@ export class ChecklistComponent implements OnChanges {
|
||||
public delete(taskId: string) {
|
||||
this.activitiTaskList.deleteTask(taskId).subscribe(
|
||||
() => {
|
||||
this.checklist = this.checklist.filter(check => check.id !== taskId);
|
||||
this.checklist = this.checklist.filter((check) => check.id !== taskId);
|
||||
this.checklistTaskDeleted.emit(taskId);
|
||||
},
|
||||
(error) => {
|
||||
|
@@ -268,7 +268,7 @@ describe('StartTaskComponent', () => {
|
||||
let attachFormToATask = spyOn(service, 'attachFormToATask').and.returnValue(of());
|
||||
spyOn(service, 'createNewTask').and.callFake(
|
||||
function() {
|
||||
return new Observable(observer => {
|
||||
return new Observable((observer) => {
|
||||
observer.next({ id: 'task-id'});
|
||||
observer.complete();
|
||||
});
|
||||
|
@@ -195,7 +195,7 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
|
||||
|
||||
this.formRenderingService.setComponentTypeResolver('select-folder', () => AttachFolderWidgetComponent, true);
|
||||
this.formRenderingService.setComponentTypeResolver('upload', () => AttachFileWidgetComponent, true);
|
||||
this.peopleSearch = new Observable<UserProcessModel[]>(observer => this.peopleSearchObserver = observer)
|
||||
this.peopleSearch = new Observable<UserProcessModel[]>((observer) => this.peopleSearchObserver = observer)
|
||||
.pipe(share());
|
||||
this.authService.getBpmLoggedUser().subscribe((user: UserRepresentation) => {
|
||||
this.currentLoggedUser = user;
|
||||
@@ -469,7 +469,7 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
|
||||
.subscribe((users) => {
|
||||
users = users.filter((user) => user.id !== this.taskDetails.assignee.id);
|
||||
this.peopleSearchObserver.next(users);
|
||||
}, error => this.logService.error('Could not load users'));
|
||||
}, (error) => this.logService.error('Could not load users'));
|
||||
}
|
||||
|
||||
onCloseSearch() {
|
||||
|
@@ -130,7 +130,7 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
||||
*/
|
||||
getFiltersByAppName(appName: string) {
|
||||
this.appsProcessService.getDeployedApplicationsByName(appName).subscribe(
|
||||
application => {
|
||||
(application) => {
|
||||
this.getFiltersByAppId(application.id);
|
||||
},
|
||||
(err) => {
|
||||
|
@@ -322,7 +322,7 @@ describe('TaskListComponent', () => {
|
||||
});
|
||||
let rowEvent = new DataRowEvent(row, null);
|
||||
|
||||
component.rowClick.subscribe(taskId => {
|
||||
component.rowClick.subscribe((taskId) => {
|
||||
expect(taskId).toEqual('999');
|
||||
expect(component.getCurrentId()).toEqual('999');
|
||||
done();
|
||||
|
@@ -347,7 +347,7 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
||||
* @param instances
|
||||
*/
|
||||
private optimizeTaskDetails(instances: any[]): any[] {
|
||||
instances = instances.map(task => {
|
||||
instances = instances.map((task) => {
|
||||
if (!task.name) {
|
||||
task.name = 'No name';
|
||||
}
|
||||
|
Reference in New Issue
Block a user