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:
@@ -59,7 +59,7 @@ export class AnalyticsReportListComponent implements OnInit {
|
||||
reports: ReportParametersModel[] = [];
|
||||
|
||||
constructor(private analyticsService: AnalyticsService) {
|
||||
this.report$ = new Observable<ReportParametersModel>(observer => this.reportObserver = observer)
|
||||
this.report$ = new Observable<ReportParametersModel>((observer) => this.reportObserver = observer)
|
||||
.pipe(share());
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ export class AnalyticsReportListComponent implements OnInit {
|
||||
}
|
||||
|
||||
public selectReportByReportId(reportId) {
|
||||
let reportFound = this.reports.find(report => report.id === reportId);
|
||||
let reportFound = this.reports.find((report) => report.id === reportId);
|
||||
if (reportFound) {
|
||||
this.currentReport = reportFound;
|
||||
this.reportClick.emit(reportFound);
|
||||
|
@@ -112,7 +112,7 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
|
||||
|
||||
ngOnInit() {
|
||||
this.dropDownSub = this.onDropdownChanged.subscribe((field) => {
|
||||
let paramDependOn: ReportParameterDetailsModel = this.reportParameters.definition.parameters.find(p => p.dependsOn === field.id);
|
||||
let paramDependOn: ReportParameterDetailsModel = this.reportParameters.definition.parameters.find((p) => p.dependsOn === field.id);
|
||||
if (paramDependOn) {
|
||||
this.retrieveParameterOptions(this.reportParameters.definition.parameters, this.appId, this.reportId, field.value);
|
||||
}
|
||||
@@ -191,8 +191,8 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
|
||||
}
|
||||
});
|
||||
this.reportForm = this.formBuilder.group(formBuilderGroup);
|
||||
this.reportForm.valueChanges.subscribe(data => this.onValueChanged(data));
|
||||
this.reportForm.statusChanges.subscribe(data => this.onStatusChanged(data));
|
||||
this.reportForm.valueChanges.subscribe((data) => this.onValueChanged(data));
|
||||
this.reportForm.statusChanges.subscribe((data) => this.onStatusChanged(data));
|
||||
}
|
||||
|
||||
public getReportParams(reportId: string) {
|
||||
@@ -368,7 +368,7 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
|
||||
deleteReport(reportId: string) {
|
||||
this.analyticsService.deleteReport(reportId).subscribe(() => {
|
||||
this.deleteReportSuccess.emit(reportId);
|
||||
}, error => this.logService.error(error));
|
||||
}, (error) => this.logService.error(error));
|
||||
}
|
||||
|
||||
ngAfterContentChecked() {
|
||||
|
Reference in New Issue
Block a user