refactor: reports module (#1227)

Fixes: #1196
This commit is contained in:
Karan Takalkar
2020-08-26 01:53:10 +05:30
committed by GitHub
parent efdd779aa9
commit 0f83739080
19 changed files with 206 additions and 200 deletions
@@ -20,11 +20,11 @@ export class RunReportResolver implements Resolve<Object> {
constructor(private reportsService: ReportsService) {}
/**
* Returns the reports data.
* Returns the report parameters data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
return this.reportsService.getReportParams(route.params['report-name']);
return this.reportsService.getReportParams(route.params['name']);
}
}