feat: add XBRL report page (#629)

Fixes: #628
This commit is contained in:
Karan Takalkar
2020-07-31 13:06:29 +05:30
committed by GitHub
parent a6f937d37c
commit b50b569d69
17 changed files with 610 additions and 8 deletions
@@ -1,30 +0,0 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
/** rxjs Imports */
import { Observable } from 'rxjs';
/** Custom Services */
import { ReportsService } from '../reports.service';
/**
* Reports data resolver.
*/
@Injectable()
export class RunReportResolver implements Resolve<Object> {
/**
* @param {ReportsService} reportsService Reports service.
*/
constructor(private reportsService: ReportsService) {}
/**
* Returns the reports data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
return this.reportsService.getReportParams(route.params['report-name']);
}
}