aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-25 09:45:38 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-25 09:45:38 -0700
commitaba34cf75577423a63a8a73dfe634cf0841f81db (patch)
treec12d6c6f1242456da0b0756dcd0febb18cfd0049
parentececc155f86163843f602c39002dd48769da2ce0 (diff)
downloadtrackermap-web-aba34cf75577423a63a8a73dfe634cf0841f81db.tar.gz
trackermap-web-aba34cf75577423a63a8a73dfe634cf0841f81db.tar.bz2
trackermap-web-aba34cf75577423a63a8a73dfe634cf0841f81db.zip
Link to replay from reports
-rw-r--r--modern/src/other/ReplayPage.js2
-rw-r--r--modern/src/reports/components/ReportsMenu.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js
index b217b374..14f9d79b 100644
--- a/modern/src/other/ReplayPage.js
+++ b/modern/src/other/ReplayPage.js
@@ -152,7 +152,7 @@ const ReplayPage = () => {
<div className={classes.sidebar}>
<Paper elevation={3} square>
<Toolbar>
- <IconButton onClick={() => navigate('/')}>
+ <IconButton onClick={() => navigate(-1)}>
<ArrowBackIcon />
</IconButton>
<Typography variant="h6" className={classes.title}>{t('reportReplay')}</Typography>
diff --git a/modern/src/reports/components/ReportsMenu.js b/modern/src/reports/components/ReportsMenu.js
index afe9de79..09e287bf 100644
--- a/modern/src/reports/components/ReportsMenu.js
+++ b/modern/src/reports/components/ReportsMenu.js
@@ -9,6 +9,7 @@ import NotificationsActiveIcon from '@mui/icons-material/NotificationsActive';
import FormatListBulletedIcon from '@mui/icons-material/FormatListBulleted';
import TrendingUpIcon from '@mui/icons-material/TrendingUp';
import BarChartIcon from '@mui/icons-material/BarChart';
+import RouteIcon from '@mui/icons-material/Route';
import { Link, useLocation } from 'react-router-dom';
import { useTranslation } from '../../common/components/LocalizationProvider';
import { useAdministrator } from '../../common/util/permissions';
@@ -67,6 +68,11 @@ const ReportsMenu = () => {
icon={<TrendingUpIcon />}
selected={location.pathname === '/reports/chart'}
/>
+ <MenuItem
+ title={t('reportReplay')}
+ link="/replay"
+ icon={<RouteIcon />}
+ />
</List>
{admin && (
<>