diff --git a/src/components/settings/RemoteManagementSettings.tsx b/src/components/settings/RemoteManagementSettings.tsx index 78c9c4c0f..ce8f347a7 100644 --- a/src/components/settings/RemoteManagementSettings.tsx +++ b/src/components/settings/RemoteManagementSettings.tsx @@ -90,6 +90,11 @@ export function RemoteManagementSettings() { const rm = config.remote_management; const isEnabled = Boolean(rm.secret_key && rm.secret_key.length > 0); const remoteAccessSupported = false; + const allowRemoteToggleEnabled = remoteAccessSupported && isEnabled; + const allowRemoteToggleDisabled = + !allowRemoteToggleEnabled && !rm.allow_remote; + const remoteAccessUnsupportedEnabled = + rm.allow_remote && !remoteAccessSupported; return (