diff options
author | Anton Tananaev <anton@traccar.org> | 2023-12-28 14:33:51 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-12-28 14:33:51 -0800 |
commit | 363d473ce27a4d672110005f4dcde6576eb68ccc (patch) | |
tree | 8b2f95adca32cbd5067287a285b4ed8595917e01 /modern/src/settings | |
parent | 0d7af5faf9d3cfd02dc9f03dd16e7824a451022f (diff) | |
download | trackermap-web-363d473ce27a4d672110005f4dcde6576eb68ccc.tar.gz trackermap-web-363d473ce27a4d672110005f4dcde6576eb68ccc.tar.bz2 trackermap-web-363d473ce27a4d672110005f4dcde6576eb68ccc.zip |
Add support link option
Diffstat (limited to 'modern/src/settings')
-rw-r--r-- | modern/src/settings/components/SettingsMenu.jsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modern/src/settings/components/SettingsMenu.jsx b/modern/src/settings/components/SettingsMenu.jsx index 96580974..0f3ebbe5 100644 --- a/modern/src/settings/components/SettingsMenu.jsx +++ b/modern/src/settings/components/SettingsMenu.jsx @@ -13,6 +13,7 @@ import PeopleIcon from '@mui/icons-material/People'; import TodayIcon from '@mui/icons-material/Today'; import PublishIcon from '@mui/icons-material/Publish'; import SmartphoneIcon from '@mui/icons-material/Smartphone'; +import HelpIcon from '@mui/icons-material/Help'; import { Link, useLocation } from 'react-router-dom'; import { useSelector } from 'react-redux'; import { useTranslation } from '../../common/components/LocalizationProvider'; @@ -38,6 +39,7 @@ const SettingsMenu = () => { const admin = useAdministrator(); const manager = useManager(); const userId = useSelector((state) => state.session.user.id); + const supportLink = useSelector((state) => state.session.server.attributes.support); const features = useFeatures(); @@ -122,6 +124,13 @@ const SettingsMenu = () => { icon={<PublishIcon />} selected={location.pathname.startsWith('/settings/command')} /> + {supportLink && ( + <MenuItem + title={t('settingsSupport')} + link={supportLink} + icon={<HelpIcon />} + /> + )} </> )} </List> |