aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/components
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-12-28 08:42:13 -0800
committerAnton Tananaev <anton@traccar.org>2023-12-28 08:42:13 -0800
commit0591f6a62eb9b50704038de87b24cf806f417d4b (patch)
treeb041a770edc8088f10c53441ae0b788fa7a4402e /modern/src/reports/components
parent7d607dbc8f2f5636dd1319ff018add3265c923aa (diff)
downloadtrackermap-web-0591f6a62eb9b50704038de87b24cf806f417d4b.tar.gz
trackermap-web-0591f6a62eb9b50704038de87b24cf806f417d4b.tar.bz2
trackermap-web-0591f6a62eb9b50704038de87b24cf806f417d4b.zip
Add logs report page
Diffstat (limited to 'modern/src/reports/components')
-rw-r--r--modern/src/reports/components/ReportsMenu.jsx44
1 files changed, 24 insertions, 20 deletions
diff --git a/modern/src/reports/components/ReportsMenu.jsx b/modern/src/reports/components/ReportsMenu.jsx
index a6c38578..76564e11 100644
--- a/modern/src/reports/components/ReportsMenu.jsx
+++ b/modern/src/reports/components/ReportsMenu.jsx
@@ -12,6 +12,7 @@ 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 NotesIcon from '@mui/icons-material/Notes';
import { Link, useLocation } from 'react-router-dom';
import { useTranslation } from '../../common/components/LocalizationProvider';
import { useAdministrator, useRestriction } from '../../common/util/permissions';
@@ -83,26 +84,29 @@ const ReportsMenu = () => {
icon={<RouteIcon />}
/>
</List>
- {(admin || !readonly) && (
- <>
- <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>
- </>
- )}
+ <Divider />
+ <List>
+ <MenuItem
+ title={t('sharedLogs')}
+ link="/reports/logs"
+ icon={<NotesIcon />}
+ />
+ {!readonly && (
+ <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>
</>
);
};