From 65e0d220b7dbb7e88e0171147f4c2fae88ebaa96 Mon Sep 17 00:00:00 2001 From: Pavel Jankoski Date: Fri, 20 Sep 2024 14:08:52 +0200 Subject: [PATCH] console: Remove attempt message when wifi connection is disabled --- .../connection-settings/wifi-settings-form-fields.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/webui/console/containers/gateway-managed-gateway/connection-settings/wifi-settings-form-fields.js b/pkg/webui/console/containers/gateway-managed-gateway/connection-settings/wifi-settings-form-fields.js index a77338a125..7598998c8b 100644 --- a/pkg/webui/console/containers/gateway-managed-gateway/connection-settings/wifi-settings-form-fields.js +++ b/pkg/webui/console/containers/gateway-managed-gateway/connection-settings/wifi-settings-form-fields.js @@ -105,7 +105,7 @@ const WifiSettingsFormFields = ({ initialValues, isWifiConnected, saveFormClicke ] const connectionStatus = useMemo(() => { - if (!values.wifi_profile.profile_id) return null + if (!values.wifi_profile.profile_id || !values.wifi_profile._enable_wifi_connection) return null if (hasChanged) { return { message: m.saveToConnect, icon: } } @@ -149,6 +149,7 @@ const WifiSettingsFormFields = ({ initialValues, isWifiConnected, saveFormClicke hasChanged, isWifiConnected, saveFormClicked, + values.wifi_profile._enable_wifi_connection, values.wifi_profile._override, values.wifi_profile.profile_id, ])