mirror of
https://github.com/sartography/uva-covid19-testing-frontend.git
synced 2025-01-26 23:50:48 +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.updateGraphData();
|
||||
}
|
||||
|
||||
|
||||
downloadSearchResults(): void {
|
||||
this.graphService.downloadSearchResults(this.form);
|
||||
}
|
||||
|
@ -23,12 +23,12 @@ export class GraphService {
|
||||
}
|
||||
|
||||
downloadSearchResults(form: SearchForm): void {
|
||||
let params = this.createParams(form);
|
||||
|
||||
const params = this.createParams(form);
|
||||
|
||||
this.httpClient
|
||||
.get(this.apiRoot + `/dashboard/download`, {responseType: 'text', params: params}).subscribe((data: string) => {
|
||||
let blob = new Blob([data], { type: 'text/csv' });
|
||||
saveAs(blob, "data.csv");
|
||||
.get(this.apiRoot + `/dashboard/download`, {responseType: 'text', params}).subscribe((data: string) => {
|
||||
const blob = new Blob([data], { type: 'text/csv' });
|
||||
saveAs(blob, 'data.csv');
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user