aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/ReplayPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 23:10:22 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 23:10:22 -0800
commit604eabcd97c6e7ddb42316a5a1fb0abc24e8dc7f (patch)
tree79a1ad01487fa95ac8ba6257d5b423011cba7873 /modern/src/reports/ReplayPage.js
parentcfb788f1f8738b0b29ffb6d27ca8790f1ef7b49a (diff)
downloadetbsa-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.js6
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>