diff options
Diffstat (limited to 'modern/src/settings/DeviceConnectionsPage.jsx')
-rw-r--r-- | modern/src/settings/DeviceConnectionsPage.jsx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/modern/src/settings/DeviceConnectionsPage.jsx b/modern/src/settings/DeviceConnectionsPage.jsx index 10d0c3f6..c711d719 100644 --- a/modern/src/settings/DeviceConnectionsPage.jsx +++ b/modern/src/settings/DeviceConnectionsPage.jsx @@ -76,15 +76,17 @@ const DeviceConnectionsPage = () => { label={t('sharedComputedAttributes')} /> )} - <LinkField - endpointAll="/api/commands" - endpointLinked={`/api/commands?deviceId=${id}`} - baseId={id} - keyBase="deviceId" - keyLink="commandId" - titleGetter={(it) => it.description} - label={t('sharedSavedCommands')} - /> + {!features.disableSavedCommands && ( + <LinkField + endpointAll="/api/commands" + endpointLinked={`/api/commands?deviceId=${id}`} + baseId={id} + keyBase="deviceId" + keyLink="commandId" + titleGetter={(it) => it.description} + label={t('sharedSavedCommands')} + /> + )} {!features.disableMaintenance && ( <LinkField endpointAll="/api/maintenance" |