diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-20 18:11:16 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-20 18:11:16 -0700 |
commit | f2bd440c7fdf8857a5704f214d96aba3345a14e7 (patch) | |
tree | 1b741f3d66fa7403ca81631b782617897045c841 /modern/src/settings/OptionsLayout.js | |
parent | 60f74cdaa7f737eb4749e44333a7c7166dd6db6b (diff) | |
download | trackermap-web-f2bd440c7fdf8857a5704f214d96aba3345a14e7.tar.gz trackermap-web-f2bd440c7fdf8857a5704f214d96aba3345a14e7.tar.bz2 trackermap-web-f2bd440c7fdf8857a5704f214d96aba3345a14e7.zip |
Add saved commands
Diffstat (limited to 'modern/src/settings/OptionsLayout.js')
-rw-r--r-- | modern/src/settings/OptionsLayout.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/settings/OptionsLayout.js b/modern/src/settings/OptionsLayout.js index e588cafb..f2d8c5da 100644 --- a/modern/src/settings/OptionsLayout.js +++ b/modern/src/settings/OptionsLayout.js @@ -20,6 +20,7 @@ import BuildIcon from '@material-ui/icons/Build'; import PeopleIcon from '@material-ui/icons/People'; import BarChartIcon from '@material-ui/icons/BarChart'; import TodayIcon from '@material-ui/icons/Today'; +import ExitToAppIcon from '@material-ui/icons/ExitToApp'; import SideNav from '../components/SideNav'; import NavBar from '../components/NavBar'; @@ -79,14 +80,15 @@ const OptionsLayout = ({ children }) => { ], [t]); const mainRoutes = useMemo(() => [ + { name: t('sharedNotifications'), href: '/settings/notifications', icon: <NotificationsIcon /> }, { name: t('settingsUser'), href: `/user/${userId}`, icon: <PersonIcon /> }, { name: t('sharedGeofences'), href: '/geofences', icon: <CreateIcon /> }, - { name: t('sharedNotifications'), href: '/settings/notifications', icon: <NotificationsIcon /> }, { name: t('settingsGroups'), href: '/settings/groups', icon: <FolderIcon /> }, { name: t('sharedDrivers'), href: '/settings/drivers', icon: <PersonIcon /> }, { name: t('sharedCalendars'), href: '/settings/calendars', icon: <TodayIcon /> }, { name: t('sharedComputedAttributes'), href: '/settings/attributes', icon: <StorageIcon /> }, { name: t('sharedMaintenance'), href: '/settings/maintenances', icon: <BuildIcon /> }, + { name: t('sharedSavedCommands'), href: '/settings/commands', icon: <ExitToAppIcon /> }, ], [t, userId]); const routes = useMemo(() => [...mainRoutes, ...(admin ? adminRoutes : [])], [mainRoutes, admin, adminRoutes]); |