cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [04/50] git commit: updated refs/heads/ui-restyle to 06ccb84
Date Fri, 15 Nov 2013 20:02:49 GMT
CLOUDSTACK-4428: UI > volume page > when hypervisor is KVM and kvm.snapshot.enabled is
false, still show Take Snapshot on a detached volume.


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

Branch: refs/heads/ui-restyle
Commit: 5d41d79802d86256d172276a1b7501cc9f016eb7
Parents: 9f8f74c
Author: Jessica Wang <jessicawang@apache.org>
Authored: Tue Nov 12 11:33:39 2013 -0800
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Tue Nov 12 11:41:50 2013 -0800

----------------------------------------------------------------------
 ui/scripts/storage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5d41d798/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index 314621e..22330e8 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -1900,7 +1900,7 @@
         			allowedActions.push("takeSnapshot");
     	            allowedActions.push("recurringSnapshot");
         		} else {        			
-        			if(jsonObj.vmstate == 'Stopped') {
+        			if(jsonObj.vmstate == 'Stopped' || jsonObj.virtualmachineid == undefined) { //volume
of stopped VM, or detached volume
         				allowedActions.push("takeSnapshot");
         			}
         		}


Mime
View raw message