mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix "ng lint" command (#5012)
* update to latest js-api * fix the "ng lint" command * fix linting issues * fix lint issues * lint fixes * code fixes * fix html * fix html * update tests * test fixes * update tests * fix tests and api * fix code
This commit is contained in:
committed by
Eugenio Romano
parent
140c64b79f
commit
edc0945f39
@@ -178,8 +178,8 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
return taskRepresentation.processDefinitionId && taskRepresentation.processDefinitionDeploymentId !== 'null';
|
||||
}
|
||||
|
||||
getFormByTaskId(appName, taskId: string): Promise<FormCloud> {
|
||||
return new Promise<FormCloud>((resolve, reject) => {
|
||||
getFormByTaskId(appName: string, taskId: string): Promise<FormCloud> {
|
||||
return new Promise<FormCloud>(resolve => {
|
||||
forkJoin(this.formCloudService.getTaskForm(appName, taskId),
|
||||
this.formCloudService.getTaskVariables(appName, taskId))
|
||||
.pipe(takeUntil(this.onDestroy$))
|
||||
@@ -261,7 +261,7 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
() => {
|
||||
this.onTaskSaved(this.form);
|
||||
},
|
||||
(error) => this.onTaskSavedError(this.form, error)
|
||||
(error) => this.onTaskSavedError(error)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -275,7 +275,7 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
() => {
|
||||
this.onTaskCompleted(this.form);
|
||||
},
|
||||
(error) => this.onTaskCompletedError(this.form, error)
|
||||
(error) => this.onTaskCompletedError(error)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -328,7 +328,7 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
this.formSaved.emit(form);
|
||||
}
|
||||
|
||||
protected onTaskSavedError(form: FormCloud, error: any) {
|
||||
protected onTaskSavedError(error: any) {
|
||||
this.handleError(error);
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
this.formCompleted.emit(form);
|
||||
}
|
||||
|
||||
protected onTaskCompletedError(form: FormCloud, error: any) {
|
||||
protected onTaskCompletedError(error: any) {
|
||||
this.handleError(error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user