You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2012/10/10 21:41:27 UTC

git commit: CLOUDSTACK-228: cloudstack UI - host page - hide Force Reconnect option when host state is Disconnected.

Updated Branches:
  refs/heads/master 65a526fa5 -> ad280bd17


CLOUDSTACK-228: cloudstack UI - host page - hide Force Reconnect option when host state is Disconnected.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/ad280bd1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/ad280bd1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/ad280bd1

Branch: refs/heads/master
Commit: ad280bd174bf0ef9df1296f0c0ca25f405c8a7c3
Parents: 65a526f
Author: Jessica Wang <je...@citrix.com>
Authored: Wed Oct 10 12:38:06 2012 -0700
Committer: Jessica Wang <je...@citrix.com>
Committed: Wed Oct 10 12:40:39 2012 -0700

----------------------------------------------------------------------
 ui/scripts/system.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ad280bd1/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 7611853..7b272a7 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");