diff --git a/client-react/src/pages/app/app-settings/GeneralSettings/Platform.tsx b/client-react/src/pages/app/app-settings/GeneralSettings/Platform.tsx index f4d5dd9c0a..047a195e2b 100644 --- a/client-react/src/pages/app/app-settings/GeneralSettings/Platform.tsx +++ b/client-react/src/pages/app/app-settings/GeneralSettings/Platform.tsx @@ -1,5 +1,5 @@ import { Field, FormikProps } from 'formik'; -import React, { useCallback, useContext } from 'react'; +import React, { useCallback, useContext, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import Dropdown from '../../../../components/form-controls/DropDown'; import RadioButton from '../../../../components/form-controls/RadioButton'; @@ -30,6 +30,7 @@ const Platform: React.FC> = props => { const platformOptionEnable = scenarioChecker.checkScenario(ScenarioIds.enablePlatform64, { site }); const websocketsEnable = scenarioChecker.checkScenario(ScenarioIds.webSocketsEnabled, { site }); const alwaysOnEnable = scenarioChecker.checkScenario(ScenarioIds.enableAlwaysOn, { site }); + const sshControlEnabled = useMemo(() => !stackVersionDetails.data?.supportedFeatures?.disableSSH, [stackVersionDetails]); const showHttpsOnlyInfo = (): boolean => { const siteProperties = values.site.properties; @@ -268,7 +269,8 @@ const Platform: React.FC> = props => { component={RadioButton} label={t('feature_sshName')} id="app-settings-ssh-enabled" - disabled={disableAllControls || !stackVersionDetails.data?.supportedFeatures?.disableSSH} + disabled={disableAllControls || !sshControlEnabled} + infoBubbleMessage={sshControlEnabled ? '' : t('sshDisabledInfoBubbleMessage')} options={[ { key: true, diff --git a/server/Resources/Resources.resx b/server/Resources/Resources.resx index 30c63180f8..fae704c9e2 100644 --- a/server/Resources/Resources.resx +++ b/server/Resources/Resources.resx @@ -7870,4 +7870,7 @@ Set to "External URL" to use an API definition that is hosted elsewhere. Click here to learn more about how to manage federated identity credentials on a user-assigned identity. + + SSH isn't supported for your selected stack version. +