aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/components
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-03-17 12:35:48 -0700
committerAnton Tananaev <anton@traccar.org>2024-03-17 12:35:48 -0700
commitf0614dc939051aab3544874b44510c59c683be10 (patch)
tree9a4a269779a5642e986183afbef86fa4aea8364d /modern/src/settings/components
parent7016950dac5988a55677f9773b7c6a4064ed9e46 (diff)
downloadtrackermap-web-f0614dc939051aab3544874b44510c59c683be10.tar.gz
trackermap-web-f0614dc939051aab3544874b44510c59c683be10.tar.bz2
trackermap-web-f0614dc939051aab3544874b44510c59c683be10.zip
Option to disable saved commands
Diffstat (limited to 'modern/src/settings/components')
-rw-r--r--modern/src/settings/components/SettingsMenu.jsx14
1 files changed, 8 insertions, 6 deletions
diff --git a/modern/src/settings/components/SettingsMenu.jsx b/modern/src/settings/components/SettingsMenu.jsx
index 6d8c0fd7..7085d47a 100644
--- a/modern/src/settings/components/SettingsMenu.jsx
+++ b/modern/src/settings/components/SettingsMenu.jsx
@@ -119,12 +119,14 @@ const SettingsMenu = () => {
selected={location.pathname.startsWith('/settings/maintenance')}
/>
)}
- <MenuItem
- title={t('sharedSavedCommands')}
- link="/settings/commands"
- icon={<PublishIcon />}
- selected={location.pathname.startsWith('/settings/command')}
- />
+ {!features.disableSavedCommands && (
+ <MenuItem
+ title={t('sharedSavedCommands')}
+ link="/settings/commands"
+ icon={<PublishIcon />}
+ selected={location.pathname.startsWith('/settings/command')}
+ />
+ )}
{supportLink && (
<MenuItem
title={t('settingsSupport')}