mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
tslint arrow-parens rule (#4003)
This commit is contained in:
@@ -132,7 +132,7 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
||||
*/
|
||||
getFiltersByAppName(appName: string) {
|
||||
this.appsProcessService.getDeployedApplicationsByName(appName).subscribe(
|
||||
application => {
|
||||
(application) => {
|
||||
this.getFiltersByAppId(application.id);
|
||||
this.selectProcessFilter(this.filterParam);
|
||||
},
|
||||
|
@@ -71,9 +71,9 @@ export class ProcessInstanceTasksComponent implements OnInit, OnChanges {
|
||||
constructor(private activitiProcess: ProcessService,
|
||||
private logService: LogService,
|
||||
private dialog: MatDialog) {
|
||||
this.task$ = new Observable<TaskDetailsModel>(observer => this.taskObserver = observer)
|
||||
this.task$ = new Observable<TaskDetailsModel>((observer) => this.taskObserver = observer)
|
||||
.pipe(share());
|
||||
this.completedTask$ = new Observable<TaskDetailsModel>(observer => this.completedTaskObserver = observer)
|
||||
this.completedTask$ = new Observable<TaskDetailsModel>((observer) => this.completedTaskObserver = observer)
|
||||
.pipe(share());
|
||||
}
|
||||
|
||||
|
@@ -232,7 +232,7 @@ describe('ProcessInstanceListComponent', () => {
|
||||
});
|
||||
let rowEvent = new DataRowEvent(row, null);
|
||||
|
||||
component.rowClick.subscribe(taskId => {
|
||||
component.rowClick.subscribe((taskId) => {
|
||||
expect(taskId).toEqual('999');
|
||||
expect(component.getCurrentId()).toEqual('999');
|
||||
done();
|
||||
|
@@ -224,7 +224,7 @@ export class ProcessInstanceListComponent extends DataTableSchema implements On
|
||||
totalItems: response.total
|
||||
});
|
||||
},
|
||||
error => {
|
||||
(error) => {
|
||||
this.error.emit(error);
|
||||
this.isLoading = false;
|
||||
});
|
||||
@@ -286,7 +286,7 @@ export class ProcessInstanceListComponent extends DataTableSchema implements On
|
||||
* @param instances
|
||||
*/
|
||||
private optimizeProcessDetails(instances: any[]): any[] {
|
||||
instances = instances.map(instance => {
|
||||
instances = instances.map((instance) => {
|
||||
instance.name = this.getProcessNameOrDescription(instance, 'medium');
|
||||
if (instance.started) {
|
||||
instance.started = moment(instance.started).format(this.FORMAT_DATE);
|
||||
|
@@ -115,10 +115,10 @@ export class StartProcessInstanceComponent implements OnChanges, OnInit {
|
||||
|
||||
this.loadStartProcess();
|
||||
|
||||
this.processNameInput.valueChanges.subscribe(name => this.name = name);
|
||||
this.processNameInput.valueChanges.subscribe((name) => this.name = name);
|
||||
this.filteredProcesses = this.processDefinitionInput.valueChanges
|
||||
.pipe(
|
||||
map(value => this._filter(value))
|
||||
map((value) => this._filter(value))
|
||||
);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ export class StartProcessInstanceComponent implements OnChanges, OnInit {
|
||||
private _filter(value: string): ProcessDefinitionRepresentation[] {
|
||||
if (value !== null && value !== undefined) {
|
||||
const filterValue = value.toLowerCase();
|
||||
let filteredProcess = this.processDefinitions.filter(option => option.name.toLowerCase().includes(filterValue));
|
||||
let filteredProcess = this.processDefinitions.filter((option) => option.name.toLowerCase().includes(filterValue));
|
||||
|
||||
if (this.processFilterSelector) {
|
||||
this.selectedProcessDef = this.getSelectedProcess(filterValue);
|
||||
@@ -147,7 +147,7 @@ export class StartProcessInstanceComponent implements OnChanges, OnInit {
|
||||
}
|
||||
|
||||
getSelectedProcess(selectedProcess) {
|
||||
let processSelected = this.processDefinitions.find(process => process.name.toLowerCase() === selectedProcess);
|
||||
let processSelected = this.processDefinitions.find((process) => process.name.toLowerCase() === selectedProcess);
|
||||
|
||||
if (!processSelected) {
|
||||
processSelected = new ProcessDefinitionRepresentation();
|
||||
|
Reference in New Issue
Block a user