diff options
author | Anton Tananaev <anton@traccar.org> | 2023-01-27 14:24:09 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-01-27 14:24:09 -0800 |
commit | 2a1bc9710eb1005a8937dc7ec63c25975bb28f41 (patch) | |
tree | af414797d86b809f845562e498637a4f2f2bf9ce /modern/src/reports/components | |
parent | c2f20eb92f9d916df576d6fecc4063c41a089b0e (diff) | |
download | trackermap-web-2a1bc9710eb1005a8937dc7ec63c25975bb28f41.tar.gz trackermap-web-2a1bc9710eb1005a8937dc7ec63c25975bb28f41.tar.bz2 trackermap-web-2a1bc9710eb1005a8937dc7ec63c25975bb28f41.zip |
Scheduled reports page
Diffstat (limited to 'modern/src/reports/components')
-rw-r--r-- | modern/src/reports/components/ReportsMenu.js | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/modern/src/reports/components/ReportsMenu.js b/modern/src/reports/components/ReportsMenu.js index 8fa7df2d..3616f828 100644 --- a/modern/src/reports/components/ReportsMenu.js +++ b/modern/src/reports/components/ReportsMenu.js @@ -10,6 +10,7 @@ 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 EventRepeatIcon from '@mui/icons-material/EventRepeat'; import { Link, useLocation } from 'react-router-dom'; import { useTranslation } from '../../common/components/LocalizationProvider'; import { useAdministrator } from '../../common/util/permissions'; @@ -74,19 +75,22 @@ const ReportsMenu = () => { icon={<RouteIcon />} /> </List> - {admin && ( - <> - <Divider /> - <List> - <MenuItem - title={t('statisticsTitle')} - link="/reports/statistics" - icon={<BarChartIcon />} - selected={location.pathname === '/reports/statistics'} - /> - </List> - </> - )} + <Divider /> + <List> + <MenuItem + title={t('reportScheduled')} + link="/reports/scheduled" + icon={<EventRepeatIcon />} + /> + {admin && ( + <MenuItem + title={t('statisticsTitle')} + link="/reports/statistics" + icon={<BarChartIcon />} + selected={location.pathname === '/reports/statistics'} + /> + )} + </List> </> ); }; |