diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 23:10:22 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 23:10:22 -0800 |
commit | 604eabcd97c6e7ddb42316a5a1fb0abc24e8dc7f (patch) | |
tree | 79a1ad01487fa95ac8ba6257d5b423011cba7873 /modern/src/reports/ReplayPage.js | |
parent | cfb788f1f8738b0b29ffb6d27ca8790f1ef7b49a (diff) | |
download | etbsa-traccar-web-604eabcd97c6e7ddb42316a5a1fb0abc24e8dc7f.tar.gz etbsa-traccar-web-604eabcd97c6e7ddb42316a5a1fb0abc24e8dc7f.tar.bz2 etbsa-traccar-web-604eabcd97c6e7ddb42316a5a1fb0abc24e8dc7f.zip |
Support excel reports
Diffstat (limited to 'modern/src/reports/ReplayPage.js')
-rw-r--r-- | modern/src/reports/ReplayPage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/reports/ReplayPage.js b/modern/src/reports/ReplayPage.js index 5c27cb5..dfa9999 100644 --- a/modern/src/reports/ReplayPage.js +++ b/modern/src/reports/ReplayPage.js @@ -46,9 +46,9 @@ const ReplayPage = () => { const [positions, setPositions] = useState([]); const [index, setIndex] = useState(0); - const handleSubmit = async (deviceId, from, to) => { + const handleSubmit = async (deviceId, from, to, _, headers) => { const query = new URLSearchParams({ deviceId, from, to }); - const response = await fetch(`/api/positions?${query.toString()}`, { headers: { 'Accept': 'application/json' } }); + const response = await fetch(`/api/positions?${query.toString()}`, { headers }); if (response.ok) { setIndex(0); setPositions(await response.json()); @@ -88,7 +88,7 @@ const ReplayPage = () => { </Typography> </AccordionSummary> <AccordionDetails className={classes.configForm}> - <ReportFilter handleSubmit={handleSubmit} />; + <ReportFilter handleSubmit={handleSubmit} showOnly /> </AccordionDetails> </Accordion> </div> |