mirror of
https://github.com/sartography/uva-covid19-testing-frontend.git
synced 2025-01-27 16:05:04 +00:00
Linted
This commit is contained in:
parent
f724236d76
commit
05d5dd79e7
@ -119,7 +119,7 @@ export class GraphsComponent implements OnInit {
|
|||||||
this.endDate = new Date();
|
this.endDate = new Date();
|
||||||
this.updateGraphData();
|
this.updateGraphData();
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadSearchResults(): void {
|
downloadSearchResults(): void {
|
||||||
this.graphService.downloadSearchResults(this.form);
|
this.graphService.downloadSearchResults(this.form);
|
||||||
}
|
}
|
||||||
|
@ -23,12 +23,12 @@ export class GraphService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
downloadSearchResults(form: SearchForm): void {
|
downloadSearchResults(form: SearchForm): void {
|
||||||
let params = this.createParams(form);
|
const params = this.createParams(form);
|
||||||
|
|
||||||
this.httpClient
|
this.httpClient
|
||||||
.get(this.apiRoot + `/dashboard/download`, {responseType: 'text', params: params}).subscribe((data: string) => {
|
.get(this.apiRoot + `/dashboard/download`, {responseType: 'text', params}).subscribe((data: string) => {
|
||||||
let blob = new Blob([data], { type: 'text/csv' });
|
const blob = new Blob([data], { type: 'text/csv' });
|
||||||
saveAs(blob, "data.csv");
|
saveAs(blob, 'data.csv');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user