mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ADF-5432] component template and code fixes after testing Angular strict mode (#7118)
* process list fixes * template error fixes * template and code fixes * bug fixes in templates and types * bugs, bugs are everywhere * fix test * test fixes * enable strict templates for extensions lib * enable strict mode for insights lib * enable strict mode for core lib * enable strict mode for content lib * strict mode for process lib * strict mode for process cloud * fix demo shell template issues * fix process cloud types
This commit is contained in:
@@ -30,7 +30,7 @@ export class AnalyticsGeneratorComponent implements OnChanges {
|
||||
|
||||
/** reportId. */
|
||||
@Input()
|
||||
reportId: number;
|
||||
reportId: string;
|
||||
|
||||
/** reportParamQuery. */
|
||||
@Input()
|
||||
@@ -71,7 +71,7 @@ export class AnalyticsGeneratorComponent implements OnChanges {
|
||||
|
||||
ngOnChanges() {
|
||||
if (this.reportId && this.reportParamQuery) {
|
||||
this.generateReport(`${this.reportId}`, this.reportParamQuery);
|
||||
this.generateReport(this.reportId, this.reportParamQuery);
|
||||
} else {
|
||||
this.reset();
|
||||
}
|
||||
@@ -82,7 +82,7 @@ export class AnalyticsGeneratorComponent implements OnChanges {
|
||||
reportParamQuery = {};
|
||||
}
|
||||
this.analyticsService.getReportsByParams(reportId, reportParamQuery).subscribe(
|
||||
(res: Chart[]) => {
|
||||
(res) => {
|
||||
this.reports = res;
|
||||
if (this.reports) {
|
||||
this.selectFirstReport();
|
||||
|
Reference in New Issue
Block a user