aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/components/SettingsMenu.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/components/SettingsMenu.jsx')
-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')}