Revision 53188
Added by Myrto Koukouli over 5 years ago
metrics-usagestats-report-results.component.ts | ||
---|---|---|
26 | 26 |
selectedItemIndex: number; |
27 | 27 |
|
28 | 28 |
pageSizeSelect: FormGroup; |
29 |
chosenReport: string; |
|
29 | 30 |
|
30 | 31 |
constructor(private route: ActivatedRoute, |
31 | 32 |
private authService: AuthenticationService, |
... | ... | |
54 | 55 |
this.params.append('Granularity', qparams['granularity']); |
55 | 56 |
}); |
56 | 57 |
|
58 |
this.chosenReport = this.params.get('Report'); |
|
57 | 59 |
this.getReportResponse(); |
58 | 60 |
} |
59 | 61 |
|
... | ... | |
140 | 142 |
} |
141 | 143 |
} |
142 | 144 |
|
143 |
transformItem(urls: string) {
|
|
145 |
transformItem(itemIdentifiers: any[]) {
|
|
144 | 146 |
/*const temp = urls.split(';'); |
145 | 147 |
let output = ''; |
146 | 148 |
for (let u of temp) { |
... | ... | |
149 | 151 |
} |
150 | 152 |
output = output + u.replace(/\\/g,'').trim(); |
151 | 153 |
}*/ |
152 |
return urls.split(';'); |
|
154 |
const i = itemIdentifiers.findIndex(x => x['Type'] === 'URL'); |
|
155 |
if ( i > -1 ){ |
|
156 |
const urls = itemIdentifiers[i]['Value']; |
|
157 |
return urls.split(';'); |
|
158 |
} |
|
159 |
return ''; |
|
153 | 160 |
} |
154 | 161 |
|
155 | 162 |
getBg(i: number) { |
Also available in: Unified diff
fixed bug in usagestats