aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/GroupConnectionsPage.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/GroupConnectionsPage.jsx')
-rw-r--r--modern/src/settings/GroupConnectionsPage.jsx20
1 files changed, 11 insertions, 9 deletions
diff --git a/modern/src/settings/GroupConnectionsPage.jsx b/modern/src/settings/GroupConnectionsPage.jsx
index cd4e743b..980bd9da 100644
--- a/modern/src/settings/GroupConnectionsPage.jsx
+++ b/modern/src/settings/GroupConnectionsPage.jsx
@@ -76,15 +76,17 @@ const GroupConnectionsPage = () => {
label={t('sharedComputedAttributes')}
/>
)}
- <LinkField
- endpointAll="/api/commands"
- endpointLinked={`/api/commands?groupId=${id}`}
- baseId={id}
- keyBase="groupId"
- keyLink="commandId"
- titleGetter={(it) => it.description}
- label={t('sharedSavedCommands')}
- />
+ {!features.disableSavedCommands && (
+ <LinkField
+ endpointAll="/api/commands"
+ endpointLinked={`/api/commands?groupId=${id}`}
+ baseId={id}
+ keyBase="groupId"
+ keyLink="commandId"
+ titleGetter={(it) => it.description}
+ label={t('sharedSavedCommands')}
+ />
+ )}
{!features.disableMaintenance && (
<LinkField
endpointAll="/api/maintenance"