From ad280bd174bf0ef9df1296f0c0ca25f405c8a7c3 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 10 Oct 2012 12:38:06 -0700 Subject: [PATCH] CLOUDSTACK-228: cloudstack UI - host page - hide Force Reconnect option when host state is Disconnected. --- ui/scripts/system.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 761185399da..7b272a756c7 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -9749,7 +9749,9 @@ if (jsonObj.resourcestate == "Enabled") { allowedActions.push("edit"); allowedActions.push("enableMaintenanceMode"); - allowedActions.push("forceReconnect"); + + if(jsonObj.state != "Disconnected") + allowedActions.push("forceReconnect"); } else if (jsonObj.resourcestate == "ErrorInMaintenance") { allowedActions.push("edit");