Updated Branches: refs/heads/master 9ef5b4220 -> 250501c56
CS-14907:Download volume option to be present only if it is in READY state since it has moved to the primary storage Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/250501c5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/250501c5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/250501c5 Branch: refs/heads/master Commit: 250501c56d9131584912cf3e64b5317624cd06c1 Parents: 9ef5b42 Author: Pranav Saxena <[email protected]> Authored: Wed Aug 1 10:58:22 2012 +0530 Committer: Pranav Saxena <[email protected]> Committed: Wed Aug 1 10:58:22 2012 +0530 ---------------------------------------------------------------------- ui/scripts/storage.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/250501c5/ui/scripts/storage.js ---------------------------------------------------------------------- diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 01901d3..e75244f 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -1315,7 +1315,7 @@ allowedActions.push("recurringSnapshot"); } if(jsonObj.state != "Allocated") { - if((jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) && jsonObj.state != "Ready") { + if((jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) && jsonObj.state == "Ready") { allowedActions.push("downloadVolume"); } }
