We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f87b2b commit 91f14e3Copy full SHA for 91f14e3
1 file changed
src/app/shared/metric/metric-default/metric-default.component.ts
@@ -1,5 +1,6 @@
1
import { Component, OnInit } from '@angular/core';
2
import { BaseMetricComponent } from '../metric-loader/base-metric.component';
3
+import { METRIC_TYPE_DOWNLOAD } from '../metric-embedded/metric-embedded-download/metric-embedded-download.component';
4
5
@Component({
6
selector: 'ds-metric-default',
@@ -16,5 +17,8 @@ export class MetricDefaultComponent extends BaseMetricComponent implements OnIni
16
17
18
ngOnInit(): void {
19
this.url = this.getDetailUrl();
20
+ if (this.metric.metricType === 'download') {
21
+ this.url += (this.url.includes('?') ? '&' : '?') + 'reportType=' + METRIC_TYPE_DOWNLOAD;
22
+ }
23
}
24
0 commit comments